renamed vars to use 'lxc' prefix instead of 'container'
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
- name: Change root password
|
||||
ansible.builtin.user:
|
||||
name: root
|
||||
password: "{{ container_password | password_hash('sha512') }}"
|
||||
password: "{{ lxc_password | password_hash('sha512') }}"
|
||||
update_password: always
|
||||
when: container_password is defined
|
||||
when: lxc_password is defined
|
||||
|
||||
- name: Change admin password
|
||||
ansible.builtin.user:
|
||||
@@ -22,6 +22,6 @@
|
||||
|
||||
- name: Remove previous entry from known hosts
|
||||
ansible.builtin.known_hosts:
|
||||
name: "{{ hostvars[container_hostname]['ansible_host'] }}"
|
||||
name: "{{ hostvars[lxc_hostname]['ansible_host'] }}"
|
||||
state: absent
|
||||
delegate_to: localhost
|
||||
|
||||
Reference in New Issue
Block a user