when:awx_customise_base_domain_website is undefined
- name:If user doesn't define a awx_sftp_password, create a disabled 'sftp' account
@ -153,7 +153,7 @@
user:
name:sftp
groups:sftp
append:yes
append:true
when:awx_customise_base_domain_website is defined
- name:Create the ro /chroot directory with sticky bit if it doesn't exist. (/chroot/website has matrix:matrix permissions and is mounted to nginx container)
@ -208,7 +208,7 @@
group:sftp
mode:'0644'
when:(awx_sftp_public_key | length > 0) and (awx_sftp_auth_method == "SSH Key")
when:(awx_purge_mode.find("No local users [recommended]") != -1) or (awx_purge_mode.find("Number of users [slower]") != -1) or (awx_purge_mode.find("Number of events [slower]") != -1)
register:awx_janitors_token
no_log:True
no_log:true
- name:Copy build_room_list.py script to target machine
when:(awx_purge_mode.find("No local users [recommended]") != -1) or (awx_purge_mode.find("Number of users [slower]") != -1) or (awx_purge_mode.find("Number of events [slower]") != -1)
- name:Remove complete room list from target machine
when:(awx_purge_mode.find("No local users [recommended]") != -1) or (awx_purge_mode.find("Number of users [slower]") != -1) or (awx_purge_mode.find("Number of events [slower]") != -1)
when:(awx_purge_mode.find("No local users [recommended]") != -1) or (awx_purge_mode.find("Number of users [slower]") != -1) or (awx_purge_mode.find("Number of events [slower]") != -1) or (awx_purge_mode.find("Skip purging rooms [faster]") != -1)
when:(awx_purge_mode.find("No local users [recommended]") != -1) or (awx_purge_mode.find("Number of users [slower]") != -1) or (awx_purge_mode.find("Number of events [slower]") != -1) or (awx_purge_mode.find("Skip purging rooms [faster]") != -1)
- name:Revert 'Deploy/Update a Server' job template
when:(awx_purge_mode.find("No local users [recommended]") != -1) or (awx_purge_mode.find("Number of users [slower]") != -1) or (awx_purge_mode.find("Number of events [slower]") != -1) or (awx_purge_mode.find("Skip purging rooms [faster]") != -1)
- name:Ensure matrix-synapse is stopped
service:
name:matrix-synapse
state:stopped
daemon_reload:yes
daemon_reload:true
when:(awx_purge_mode.find("Perform final shrink") != -1)
- name:Re-index Synapse database
@ -208,7 +208,7 @@
service:
name:matrix-synapse
state:started
daemon_reload:yes
daemon_reload:true
when:(awx_purge_mode.find("Perform final shrink") != -1)
- name:Adjust 'Deploy/Update a Server' job template
when:(awx_purge_mode.find("Perform final shrink") != -1)
- name:Cleanup room_list files
@ -264,13 +264,13 @@
shell:|
rm /tmp/{{ subscription_id }}_room_list*
when:(awx_purge_mode.find("No local users [recommended]") != -1) or (awx_purge_mode.find("Number of users [slower]") != -1) or (awx_purge_mode.find("Number of events [slower]") != -1)
ignore_errors:yes
ignore_errors:true
- name:Collect after shrink size of Synapse database
shell:du -sh /matrix/postgres/data
register:awx_db_size_after_stat
when:(awx_purge_mode.find("Perform final shrink") != -1)