feat: add conditionals to user creation
This commit is contained in:
@@ -29,6 +29,7 @@
|
|||||||
shell: /bin/bash
|
shell: /bin/bash
|
||||||
create_home: yes
|
create_home: yes
|
||||||
become: true
|
become: true
|
||||||
|
when: deployment_public_ssh_key is defined
|
||||||
|
|
||||||
- name: Add SSH public key for deployment user
|
- name: Add SSH public key for deployment user
|
||||||
ansible.posix.authorized_key:
|
ansible.posix.authorized_key:
|
||||||
@@ -36,3 +37,4 @@
|
|||||||
state: present
|
state: present
|
||||||
key: "{{ deployment_public_ssh_key }}"
|
key: "{{ deployment_public_ssh_key }}"
|
||||||
become: true
|
become: true
|
||||||
|
when: deployment_public_ssh_key is defined
|
||||||
|
|||||||
Reference in New Issue
Block a user