2020-07-10 01:54:15 +00:00
|
|
|
- name: Install useful software
|
2023-05-04 03:42:55 +00:00
|
|
|
ansible.builtin.apt:
|
2020-08-15 22:14:45 +00:00
|
|
|
name: "{{ packages }}"
|
2020-07-10 01:54:15 +00:00
|
|
|
state: present
|
2020-09-21 21:41:32 +00:00
|
|
|
update_cache: true
|
2020-07-29 05:09:46 +00:00
|
|
|
|
|
|
|
- name: Manage root authorized_keys
|
2023-05-04 03:42:55 +00:00
|
|
|
ansible.builtin.template:
|
2020-07-29 05:09:46 +00:00
|
|
|
src: authorized_keys.j2
|
|
|
|
dest: /root/.ssh/authorized_keys
|
2023-05-04 05:20:22 +00:00
|
|
|
mode: 0400
|
2020-07-29 05:09:46 +00:00
|
|
|
when: authorized_keys is defined
|
2020-09-01 16:56:27 +00:00
|
|
|
|
|
|
|
- name: Manage filesystem mounts
|
2023-05-04 03:42:55 +00:00
|
|
|
ansible.posix.mount:
|
2020-09-01 16:56:27 +00:00
|
|
|
path: "{{ item.path }}"
|
|
|
|
src: "UUID={{ item.uuid }}"
|
|
|
|
fstype: "{{ item.fstype }}"
|
|
|
|
state: mounted
|
|
|
|
loop: "{{ mounts }}"
|
|
|
|
when: mounts is defined
|