Skip to content
Snippets Groups Projects
Commit 21602e05 authored by Chris Croome's avatar Chris Croome
Browse files

tweaks

parent 599618be
No related branches found
No related tags found
1 merge request!1Postfix
......@@ -17,6 +17,20 @@
groups: discourse,docker
uid: 1000
- name: Stat /var/discourse/lost+found
stat:
path: "/var/discourse/lost+found"
register: var_discourse_partition
- block:
- name: Delete lost+found directory if /var/discourse is a partition
file:
dest: /var/discourse/lost+found
state: absent
when: var_discourse_partition.stat.exists == True
- name: Directory for Discourse present
file:
dest: /var/discourse
......@@ -86,6 +100,16 @@
become: yes
become_user: 'discourse'
- block:
- name: Create lost+found directory
command: mklost+found
args:
chdir: /var/discourse
creates: /var/discourse/lost+found
when: var_discourse_partition.stat.exists == True
- name: Count how much swap is available
shell: "free -g --si | awk '/^Swap:/{print $2}'"
args:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment