This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| cp ../ansible-modules-extras/cloud/cloudstack/cs_*.py . | |
| str='from ansible.module_utils.cloudstack import *' | |
| for i in $(ls cs_*.py); do | |
| sed -i -e "/$str/r ansible_cloudstack_utils.py" -e "/$str/d" $i | |
| done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| import Tkinter as tk | |
| import time | |
| class App(): | |
| def __init__(self): | |
| self.timer = 60 | |
| self.root = tk.Tk() | |
| self.label = tk.Label(text="") | |
| self.label.pack() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - hosts: localhost | |
| gather_facts: no | |
| tasks: | |
| - name: copy an ssl cert | |
| shell: echo cert has been changed | |
| notify: | |
| - hosts: localhost | |
| gather_facts: no | |
| handlers: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| - hosts: localhost | |
| connection: local | |
| tasks: | |
| - name: foobar | |
| shell: echo foobar | |
| notify: event_foobar | |
| handlers: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ cat hosts | |
| foo | |
| $ cat test.yml | |
| --- | |
| - hosts: foo | |
| connection: local | |
| gather_facts: no |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Using /home/resmo/Projects/swisstxt/ansible-swisstxt/ansible.cfg as config file | |
| ERROR! Unexpected Exception: too many values to unpack | |
| the full traceback was: | |
| Traceback (most recent call last): | |
| File "/home/resmo/Projects/resmo/ansible/bin/ansible-playbook", line 97, in <module> | |
| exit_code = cli.run() | |
| File "/home/resmo/Projects/resmo/ansible/lib/ansible/cli/playbook.py", line 132, in run | |
| inventory = Inventory(loader=loader, variable_manager=variable_manager, host_list=self.options.inventory) | |
| File "/home/resmo/Projects/resmo/ansible/lib/ansible/inventory/__init__.py", line 91, in __init__ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ cs listProjects --region ma-cloud | |
| { | |
| "count": 1, | |
| "project": [ | |
| { | |
| "account": "moserre", | |
| "cpuavailable": "39", | |
| "cpulimit": "40", | |
| "cputotal": 1, | |
| "displaytext": "web", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - block: | |
| - include: "{{ fname }}.yml" | |
| when: fname != "" | |
| - block: | |
| - include: foo.yml | |
| - include: bla.yml | |
| when: fname == "" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| - hosts: localhost | |
| gather_facts: yes | |
| tasks: | |
| - name: extract new templates | |
| local_action: | |
| module: cs_template | |
| name: my template | |
| state: extracted | |
| api_region: first region |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| one | |
| two | |
| three | |
| four | |
| five | |
| six |