Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| --- | |
| apiVersion: v1 | |
| kind: ServiceAccount | |
| metadata: | |
| name: tekton-pipelinerun-cleaner | |
| labels: | |
| app: tekton-pipelinerun-cleaner | |
| app.kubernetes.io/name: tekton-pipelinerun-cleaner | |
| app.kubernetes.io/component: pipelinerun-cleaner | |
| app.kubernetes.io/part-of: tekton |
| --- | |
| - name: test | |
| hosts: localhost | |
| connection: local | |
| tasks: | |
| - name: Invoke poller | |
| vars: | |
| url: http://localhost:8000/abc.json | |
| validate_certs: yes | |
| poll_interval: 10 |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| --- | |
| - hosts: all | |
| gather_facts: no | |
| vars: | |
| string: "string" | |
| list: | |
| - item1 | |
| - item2 | |
| dict: | |
| key1: value1 |
| #!/bin/bash | |
| if [ "$1" == "--list" ] ; then | |
| cat<<EOF | |
| { | |
| "bash_hosts": { | |
| "hosts": [ | |
| "10.220.21.24", | |
| "10.220.21.27" | |
| ], |
| --- | |
| - name: Create Instance in AWS | |
| hosts: localhost | |
| connection: local | |
| gather_facts: false | |
| vars: | |
| aws_access_key: "xxxxxx" | |
| aws_secret_key: "xxxxxx" | |
| security_token: "xxxxxx" |
| import sys | |
| import json | |
| from ansible.parsing.dataloader import DataLoader | |
| try: | |
| from ansible.inventory.manager import InventoryManager | |
| A24 = True | |
| except ImportError: | |
| from ansible.vars import VariableManager |