Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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: centos | |
gather_facts: false | |
tasks: | |
- name: Create files with copy content module | |
copy: | |
content: | | |
test file {{ item }} | |
dest: ~/file_{{item}} | |
with_sequence: start=1 end={{ n }} |
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: all | |
gather_facts: false | |
tasks: | |
- name: Create files with copy content module | |
copy: | |
src: "file_{{ item }}" | |
dest: ~/file_{{item}} | |
with_sequence: start=1 end={{ n }} |
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
[defaults] | |
strategy = mitogen_linear | |
strategy_plugins = /usr/lib/python2.7/site-packages/ansible_mitogen/plugins/strategy |
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
export ANSIBLE_STRATEGY_PLUGINS=/usr/lib/python2.7/site-packages/ansible_mitogen/plugins/strategy | |
export ANSIBLE_STRATEGY=mitogen_linear |
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: all | |
gather_facts: false | |
tasks: | |
- name: Install packages | |
package: | |
name: | |
- samba | |
- httpd | |
- nano |
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: all | |
gather_facts: false | |
tasks: | |
- name: Install packages | |
become: true | |
package: | |
name: | |
- samba | |
- httpd | |
- nano |
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
curl -G 'http://localhost:8086/query' --data-urlencode "db=telegraf" --data-urlencode "epoch=ms" --data-urlencode "q=SELECT count(\"result_num\") FROM \"build\" WHERE ("pipeline" = 'gate' AND "passed" = 'False') AND time >= now() - 24h" |
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
from ansiblelint import AnsibleLintRule | |
def uncorrect_task(task, cmd): | |
if 'shell' not in task: | |
return False | |
if 'register' in task: | |
return False | |
if task.get('ignore_errors'): | |
return False |
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
export VIRTHOST=#IP of your virthost | |
git clone https://github.com/openstack/tripleo-quickstart-extras | |
cd tripleo-quickstart-extras | |
git fetch https://git.openstack.org/openstack/tripleo-quickstart-extras refs/changes/29/543429/13 && git checkout FETCH_HEAD | |
echo -e "[virthost]\n$VIRTHOST" > /tmp/host | |
# Provision nodes | |
ansible-playbook -vv -i /tmp/host ../playbooks/libvirt-multinode.yml # -e network_vms="bridge=br0" or -e network_vms="network=default" for default NATed network |