diff --git a/roles/common/tasks/common-bitlair.yaml b/roles/common/tasks/common-bitlair.yaml deleted file mode 100644 index 78845a3..0000000 --- a/roles/common/tasks/common-bitlair.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- -- name: Update authorized_keys - ansible.builtin.template: - src: authorized_keys.j2 - dest: /root/.ssh/authorized_keys - mode: 0600 - when: root_access is defined and root_access - tags: authorized_keys diff --git a/roles/common/tasks/main.yaml b/roles/common/tasks/main.yaml index 6f07f31..b66b565 100644 --- a/roles/common/tasks/main.yaml +++ b/roles/common/tasks/main.yaml @@ -30,6 +30,14 @@ ansible.builtin.import_tasks: file: apt-minimal.yaml +- name: Update authorized_keys + ansible.builtin.template: + src: authorized_keys.j2 + dest: /root/.ssh/authorized_keys + mode: 0600 + when: root_access is defined and root_access + tags: authorized_keys + - tags: network ansible.builtin.import_tasks: file: network.yaml