Skip to content
Extraits de code Groupes Projets
Valider 168eb6bd rédigé par Acide Poulain's avatar Acide Poulain Validation de nono
Parcourir les fichiers

#12 made configuration.yml idempotent

parent ac97b9ca
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion!4Draft: Resolve "Add continuous integration testing via Gitlab CI"
......@@ -4,7 +4,7 @@
path: /home/hedgedocs/hedgedoc/bin/setup
owner: hedgedocs
group: www-data
mode: 0777
mode: 0750
- name: Configure dependencies
ansible.builtin.shell: >
......@@ -12,13 +12,7 @@
/home/hedgedocs/setup_log_hedgedocs.txt
args:
chdir: /home/hedgedocs/hedgedoc
- name: Remove script and dependencies execute right for all users
ansible.builtin.file:
path: /home/hedgedocs/hedgedoc/bin/setup
owner: hedgedocs
group: www-data
mode: 0644
when: hedgedoc_archive_download.changed
- name: Push Hedgedocs service configuration file
template:
......@@ -26,7 +20,6 @@
dest: /home/hedgedocs/hedgedoc/config.json
owner: hedgedocs
group: www-data
mode: 0600
- name: Set safe permission recursively for Hedgedocs folder
file:
......@@ -43,6 +36,7 @@
owner: root
group: root
mode: 0644
register: hedgedoc_service
- name: Enable systemd configuration and make sure it is started
systemd:
......@@ -59,6 +53,7 @@
state: reloaded
name: nginx
enabled: true
when: hedgedoc_archive_download.changed or hedgedoc_service.changed
- name: Service running !
debug:
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter