Update state directory to mabe not break itself on every reboot

This commit is contained in:
Ethan Paul 2021-11-09 00:03:05 -05:00
parent 4069d8a77a
commit 197157b830
No known key found for this signature in database
GPG Key ID: 6A337337DF6B5B1A
2 changed files with 7 additions and 1 deletions

View File

@ -1,7 +1,7 @@
---
all:
vars:
skylab_state_dir: /var/run/skylab
skylab_state_dir: /var/lib/skylab
skylab_ansible_venv: "{{ skylab_state_dir }}/ansible-runtime"
skylab_pip_version: 19.3.1
ansible_user: ansible

View File

@ -9,6 +9,12 @@
- python3-policycoreutils
- python3-firewall
- name: Remove legacy state directory
become: true
ansible.builtin.file:
path: /var/run/skylab
state: absent
- name: Create state directory
become: true
ansible.builtin.file: