playbook working, tidying up task order
This commit is contained in:
30
tasks/initialiaze.yaml
Normal file
30
tasks/initialiaze.yaml
Normal file
@ -0,0 +1,30 @@
|
||||
---
|
||||
|
||||
- name: Initialiaze - Install Packages
|
||||
when: not quick_refresh | bool
|
||||
apt:
|
||||
name:
|
||||
- "{{ ssd_health_packages_item }}"
|
||||
state: present
|
||||
loop: "{{ ssd_health_packages }}"
|
||||
loop_control:
|
||||
loop_var: ssd_health_packages_item
|
||||
|
||||
- name: "Initialiaze - create {{ autologin_user }} user"
|
||||
when: not quick_refresh | bool
|
||||
user:
|
||||
name: "{{ autologin_user }}"
|
||||
groups: disk
|
||||
password: "{{ autologin_password | password_hash('sha512') }}"
|
||||
shell: /bin/bash
|
||||
|
||||
- name: "Initialiaze - ensure {{ autologin_user }} home folder exists"
|
||||
when: not quick_refresh | bool
|
||||
file:
|
||||
path: "/home/{{ autologin_user }}"
|
||||
state: directory
|
||||
owner: "{{ autologin_user }}"
|
||||
group: "{{ autologin_user }}"
|
||||
mode: '0700'
|
||||
|
||||
...
|
||||
Reference in New Issue
Block a user