Skip to content

Instantly share code, notes, and snippets.

@frizop
Created January 30, 2019 20:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save frizop/5dbc2b300ace3db598eeb546f3287dfc to your computer and use it in GitHub Desktop.
Save frizop/5dbc2b300ace3db598eeb546f3287dfc to your computer and use it in GitHub Desktop.
mistral-action dir
[root@lab-opst-01-b ansible-mistral-actionGc9sZ_]# ls
ansible.cfg ansible.log ansible-playbook-command.sh ansible-ssh inventory.yaml playbook.yaml ssh_private_key
[root@lab-opst-01-b ansible-mistral-actionGc9sZ_]# find .
.
./playbook.yaml
./inventory.yaml
./ssh_private_key
./ansible.cfg
./ansible-playbook-command.sh
./ansible.log
./ansible-ssh
./ansible-ssh/89230ae28c
./ansible-ssh/8af4971746
./ansible-ssh/4352e6a36f
./ansible-ssh/fd0b1d8d7b
./ansible-ssh/0eca69783a
./ansible-ssh/48d75fc8fd
./ansible-ssh/36d17bc229
./ansible-ssh/2d39759944
[root@lab-opst-01-b ansible-mistral-actionGc9sZ_]# cat playbook.yaml
- gather_facts: false
hosts: overcloud
tasks:
- name: wait for connection
wait_for_connection: {sleep: 5, timeout: 300}
[root@lab-opst-01-b ansible-mistral-actionGc9sZ_]# cat inventory.yaml
overcloud:
hosts:
192.168.24.11: {}
192.168.24.12: {}
192.168.24.14: {}
192.168.24.15: {}
192.168.24.16: {}
192.168.24.18: {}
192.168.24.8: {}
192.168.24.9: {}
[root@lab-opst-01-b ansible-mistral-actionGc9sZ_]# cat ansible-playbook-command.sh
#!/bin/bash
ANSIBLE_LOCAL_TEMP="/tmp/ansible-mistral-actionGc9sZ_"
PROFILE_TASKS_TASK_OUTPUT_LIMIT="0"
ANSIBLE_CONFIG="/tmp/ansible-mistral-actionGc9sZ_/ansible.cfg"
HOME="/tmp/ansible-mistral-actionGc9sZ_"
ANSIBLE_CALLBACK_WHITELIST="profile_tasks"
ANSIBLE_HOST_KEY_CHECKING="False"
ansible-playbook -vvvvv /tmp/ansible-mistral-actionGc9sZ_/playbook.yaml --user tripleo-admin --inventory-file /tmp/ansible-mistral-actionGc9sZ_/inventory.yaml --private-key /tmp/ansible-mistral-actionGc9sZ_/ssh_private_key "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment