summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYanis Guenane <yguenane@gmail.com>2018-06-27 10:40:43 +0200
committerYanis Guenane <yguenane@gmail.com>2018-06-27 10:40:43 +0200
commit6fce16590b6d22702945a97856d49fa350c9c56d (patch)
treee707d1c25e75ee1c9b77bf776ee4f1cb1126dd05
parente7604d83afaff9c0ce9678bbfe8b99a41cf254c6 (diff)
Small improvements
Change-Id: I5c6fabb2b79663b23fb2ff8e56a1c6d23483c019
-rw-r--r--README.md9
-rw-r--r--tasks/main.yml3
2 files changed, 6 insertions, 6 deletions
diff --git a/README.md b/README.md
index cfa532a..d4630e1 100644
--- a/README.md
+++ b/README.md
@@ -12,10 +12,9 @@ If those are not installed, they should be installed before using this role.
## Role Variables
-
-The variables of this role are :
-
- * `remoteci_id`: ID of the RemoteCI to retrieve the keys for
+| Variable name | Required | Default | Type | Description |
+|---------------|----------|---------|------|-------------|
+| dci_import_keys_remoteci_id | True | N/A | UUID | ID of the remoteci to retrieve the SSL info for |
### Example
@@ -23,7 +22,7 @@ The variables of this role are :
```
- hosts: localhost
vars:
- remoteci_id: XXX
+ dci_import_keys_remoteci_id: XXX
roles:
- dci-import-keys
```
diff --git a/tasks/main.yml b/tasks/main.yml
index 63a9f6e..33e5040 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -19,7 +19,7 @@
- name: Retrieve remoteci key and certificate from DCI
dci_keys:
- remoteci_id: '{{ remoteci_id }}'
+ remoteci_id: '{{ dci_import_keys_remoteci_id }}'
register: keys
when: file_key.stat.exists == False or file_cert.stat.exists == False
@@ -34,5 +34,6 @@
copy:
content: '{{ keys.key }}'
dest: /etc/ssl/repo/dci.key
+ mode: 0600
when: keys.key is defined
become: True