diff options
author | Ismaël Bouya <ismael.bouya@fretlink.com> | 2018-11-28 10:11:57 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@fretlink.com> | 2018-11-28 10:12:39 +0100 |
commit | b7b8fe64fb3ed13ef535c7d4789da3a5001e355d (patch) | |
tree | a2f99cd0a18013f748d7817aa286f27effd23312 /roles/contexts/fretlink/tasks/main.yml | |
parent | 386f9271125f93651cb20420de696efab8798fa9 (diff) | |
download | Ansible-b7b8fe64fb3ed13ef535c7d4789da3a5001e355d.tar.gz Ansible-b7b8fe64fb3ed13ef535c7d4789da3a5001e355d.tar.zst Ansible-b7b8fe64fb3ed13ef535c7d4789da3a5001e355d.zip |
Move environment file to template
Diffstat (limited to 'roles/contexts/fretlink/tasks/main.yml')
-rw-r--r-- | roles/contexts/fretlink/tasks/main.yml | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/roles/contexts/fretlink/tasks/main.yml b/roles/contexts/fretlink/tasks/main.yml index 99d39b3..0908eca 100644 --- a/roles/contexts/fretlink/tasks/main.yml +++ b/roles/contexts/fretlink/tasks/main.yml | |||
@@ -72,15 +72,10 @@ | |||
72 | - start | 72 | - start |
73 | - name: environment variables file | 73 | - name: environment variables file |
74 | block: | 74 | block: |
75 | - name: extract environment | 75 | - name: environment file |
76 | shell: "pass show Travail/Fretlink/Environment" | 76 | template: |
77 | register: fretlink_environment | 77 | src: environment.j2 |
78 | changed_when: false | ||
79 | check_mode: no | ||
80 | - name: store environment | ||
81 | copy: | ||
82 | dest: $HOME/workdir/environment | 78 | dest: $HOME/workdir/environment |
83 | content: "{{ fretlink_environment.stdout }}" | ||
84 | rescue: | 79 | rescue: |
85 | - debug: | 80 | - debug: |
86 | msg: "Could not read password store, continuing" | 81 | msg: "Could not read password store, continuing" |