fix sshkey_fetch var default

This commit is contained in:
Neil Hanlon 2022-02-12 17:02:14 -05:00
parent 2e86c1ed28
commit 42ee7d8e9d
Signed by: neil
GPG Key ID: 705BC21EC3C70F34
2 changed files with 6 additions and 10 deletions

View File

@ -27,27 +27,23 @@
tasks:
- name: Initialize nodes
include_tasks: tasks/init-nodes.yml
tags: init
- name: Reboot
include_tasks: tasks/reboot.yml
tags: reboot
- name: Setup infra hosts
include_tasks: tasks/infra-host.yml
when: tag.find("infra") != -1 # when on an infra tagged host
tags: infra
- name: Setup storage hosts
include_tasks: tasks/storage-host.yml
when: tag.find("storage") != -1 # when on an infra tagged host
tags: storage
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
file:
path: /var/log/ansible.run

View File

@ -34,8 +34,8 @@
args:
creates: /etc/openstack_deploy/user_secrets.yml.tar
#- import_tasks: tasks/python3-lxc.yml
# tags: python3-lxc
- import_tasks: tasks/python3-lxc.yml
tags: python3-lxc
- name: "[AIO] Deploy and setup configuration / bootstrap"
when: aio_install | default('false')