diff options
author | Gaëtan Duchaussois <gaetan.duchaussois@fretlink.com> | 2018-02-22 11:53:19 +0100 |
---|---|---|
committer | Gaëtan Duchaussois <gaetan.duchaussois@fretlink.com> | 2018-02-22 11:57:08 +0100 |
commit | f7dd5848f817bb42cb06eadc5444ec390aa813ba (patch) | |
tree | 7459517d6b8b850959313d5c30f25f18fcda5531 /tasks/login.yml | |
parent | 4882b0d33ce42a3b01ac9689d1809e362f314d3f (diff) | |
download | ansible-clever-f7dd5848f817bb42cb06eadc5444ec390aa813ba.tar.gz ansible-clever-f7dd5848f817bb42cb06eadc5444ec390aa813ba.tar.zst ansible-clever-f7dd5848f817bb42cb06eadc5444ec390aa813ba.zip |
Migrating single tasks file to a galaxy role
Diffstat (limited to 'tasks/login.yml')
-rw-r--r-- | tasks/login.yml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tasks/login.yml b/tasks/login.yml new file mode 100644 index 0000000..0eb310f --- /dev/null +++ b/tasks/login.yml | |||
@@ -0,0 +1,15 @@ | |||
1 | - name: Create .clever-cloud directory | ||
2 | file: | ||
3 | path: "{{ clever_app_confdir }}" | ||
4 | state: directory | ||
5 | |||
6 | - name: Fill the login file | ||
7 | template: | ||
8 | src: cleverlogin.j2 | ||
9 | dest: "{{ clever_login_file }}" | ||
10 | no_log: true | ||
11 | |||
12 | - name: Link app | ||
13 | shell: clever link {{ clever_app }} | ||
14 | environment: | ||
15 | CONFIGURATION_FILE: "{{ clever_login_file }}" | ||