mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2026-03-12 21:32:48 +01:00
build
This commit is contained in:
@@ -24,10 +24,10 @@
|
|||||||
append: true
|
append: true
|
||||||
when: group_check is succeeded
|
when: group_check is succeeded
|
||||||
|
|
||||||
- name: Give deploy sudo access
|
- name: Give jd passwordless sudo
|
||||||
ansible.builtin.copy:
|
copy:
|
||||||
dest: /etc/sudoers.d/jd
|
dest: /etc/sudoers.d/jd
|
||||||
content: "jd ALL=(ALL:ALL) ALL\n"
|
content: "jd ALL=(ALL) NOPASSWD:ALL\n"
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: '0440'
|
mode: '0440'
|
||||||
@@ -36,6 +36,7 @@
|
|||||||
ansible.builtin.user:
|
ansible.builtin.user:
|
||||||
name: root
|
name: root
|
||||||
password: "{{ jd_password | password_hash('sha512') }}"
|
password: "{{ jd_password | password_hash('sha512') }}"
|
||||||
|
|
||||||
- name: Update become password for subsequent tasks
|
- name: Update become password for subsequent tasks
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
ansible_become_password: "{{ jd_password }}"
|
ansible_become_password: "{{ jd_password }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user