From cf86d448f96ede049c04d8165931f92a82f35956 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Thu, 8 Nov 2018 09:47:54 +0100 Subject: Put tasks in blocks --- roles/contexts/fretlink/tasks/main.yml | 45 ++++++++++++++++++---------------- 1 file changed, 24 insertions(+), 21 deletions(-) (limited to 'roles/contexts/fretlink/tasks/main.yml') diff --git a/roles/contexts/fretlink/tasks/main.yml b/roles/contexts/fretlink/tasks/main.yml index bbeae93..b1b163a 100644 --- a/roles/contexts/fretlink/tasks/main.yml +++ b/roles/contexts/fretlink/tasks/main.yml @@ -17,30 +17,33 @@ file: path: $XDG_CONFIG_HOME/pm2 state: directory -- name: workdir scripts - synchronize: - recursive: yes - archive: no - checksum: yes - src: workdir/ - dest: /$HOME/workdir/ -- name: chmod workdir script - file: - path: $HOME/workdir/start - mode: 0755 +- name: workdir + block: + - name: workdir scripts + synchronize: + recursive: yes + archive: no + checksum: yes + src: workdir/ + dest: /$HOME/workdir/ + - name: chmod workdir script + file: + path: $HOME/workdir/start + mode: 0755 + - name: environment variables file + block: + - name: extract environment + shell: "pass show Travail/Fretlink/Environment" + register: fretlink_environment + changed_when: false + check_mode: no + - name: store environment + copy: + dest: $HOME/workdir/environment + content: "{{ fretlink_environment.stdout }}" - name: enable remind service systemd: state: started scope: user name: remind@work.service enabled: true -- name: extract environment - shell: "pass show Travail/Fretlink/Environment" - register: fretlink_environment - changed_when: false - check_mode: no -- name: store environment - copy: - dest: $HOME/workdir/environment - content: "{{ fretlink_environment.stdout }}" - backup: true -- cgit v1.2.3