fix sshkey_fetch var default
This commit is contained in:
parent
2e86c1ed28
commit
42ee7d8e9d
@ -27,27 +27,23 @@
|
|||||||
tasks:
|
tasks:
|
||||||
- name: Initialize nodes
|
- name: Initialize nodes
|
||||||
include_tasks: tasks/init-nodes.yml
|
include_tasks: tasks/init-nodes.yml
|
||||||
|
tags: init
|
||||||
|
|
||||||
- name: Reboot
|
- name: Reboot
|
||||||
include_tasks: tasks/reboot.yml
|
include_tasks: tasks/reboot.yml
|
||||||
|
tags: reboot
|
||||||
|
|
||||||
- name: Setup infra hosts
|
- name: Setup infra hosts
|
||||||
include_tasks: tasks/infra-host.yml
|
include_tasks: tasks/infra-host.yml
|
||||||
when: tag.find("infra") != -1 # when on an infra tagged host
|
when: tag.find("infra") != -1 # when on an infra tagged host
|
||||||
|
tags: infra
|
||||||
|
|
||||||
- name: Setup storage hosts
|
- name: Setup storage hosts
|
||||||
include_tasks: tasks/storage-host.yml
|
include_tasks: tasks/storage-host.yml
|
||||||
when: tag.find("storage") != -1 # when on an infra tagged host
|
when: tag.find("storage") != -1 # when on an infra tagged host
|
||||||
|
tags: storage
|
||||||
|
|
||||||
post_tasks:
|
post_tasks:
|
||||||
- name: Copy key to others
|
|
||||||
ansible.posix.authorized_key:
|
|
||||||
user: root
|
|
||||||
state: present
|
|
||||||
key: "{{ lookup('file', 'files/buffer/infra-id_rsa.pub') }}"
|
|
||||||
when: tag.find("infra") == -1 and sshkey_fetch
|
|
||||||
tags: sshkey
|
|
||||||
|
|
||||||
- name: Touching run file that ansible has ran here
|
- name: Touching run file that ansible has ran here
|
||||||
file:
|
file:
|
||||||
path: /var/log/ansible.run
|
path: /var/log/ansible.run
|
||||||
|
@ -34,8 +34,8 @@
|
|||||||
args:
|
args:
|
||||||
creates: /etc/openstack_deploy/user_secrets.yml.tar
|
creates: /etc/openstack_deploy/user_secrets.yml.tar
|
||||||
|
|
||||||
#- import_tasks: tasks/python3-lxc.yml
|
- import_tasks: tasks/python3-lxc.yml
|
||||||
# tags: python3-lxc
|
tags: python3-lxc
|
||||||
|
|
||||||
- name: "[AIO] Deploy and setup configuration / bootstrap"
|
- name: "[AIO] Deploy and setup configuration / bootstrap"
|
||||||
when: aio_install | default('false')
|
when: aio_install | default('false')
|
||||||
|
Loading…
Reference in New Issue
Block a user