Update state directory to mabe not break itself on every reboot
This commit is contained in:
parent
4069d8a77a
commit
197157b830
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
all:
|
all:
|
||||||
vars:
|
vars:
|
||||||
skylab_state_dir: /var/run/skylab
|
skylab_state_dir: /var/lib/skylab
|
||||||
skylab_ansible_venv: "{{ skylab_state_dir }}/ansible-runtime"
|
skylab_ansible_venv: "{{ skylab_state_dir }}/ansible-runtime"
|
||||||
skylab_pip_version: 19.3.1
|
skylab_pip_version: 19.3.1
|
||||||
ansible_user: ansible
|
ansible_user: ansible
|
||||||
|
@ -9,6 +9,12 @@
|
|||||||
- python3-policycoreutils
|
- python3-policycoreutils
|
||||||
- python3-firewall
|
- python3-firewall
|
||||||
|
|
||||||
|
- name: Remove legacy state directory
|
||||||
|
become: true
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: /var/run/skylab
|
||||||
|
state: absent
|
||||||
|
|
||||||
- name: Create state directory
|
- name: Create state directory
|
||||||
become: true
|
become: true
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
|
Reference in New Issue
Block a user