diff options
Diffstat (limited to 'roles/ldap_certs')
l--------- | roles/ldap_certs/hosts | 1 | ||||
-rw-r--r-- | roles/ldap_certs/main.yml | 6 | ||||
-rw-r--r-- | roles/ldap_certs/tasks/main.yml | 16 | ||||
-rw-r--r-- | roles/ldap_certs/vars/FreeBSD.yml | 3 | ||||
-rw-r--r-- | roles/ldap_certs/vars/Ubuntu.yml | 3 | ||||
-rw-r--r-- | roles/ldap_certs/vars/default.yml | 3 |
6 files changed, 32 insertions, 0 deletions
diff --git a/roles/ldap_certs/hosts b/roles/ldap_certs/hosts new file mode 120000 index 0000000..26f055a --- /dev/null +++ b/roles/ldap_certs/hosts @@ -0,0 +1 @@ +../../company/ldap_certs-hosts/
\ No newline at end of file diff --git a/roles/ldap_certs/main.yml b/roles/ldap_certs/main.yml new file mode 100644 index 0000000..430c387 --- /dev/null +++ b/roles/ldap_certs/main.yml @@ -0,0 +1,6 @@ +--- +- hosts: all + vars_files: + - vars/default.yml + tasks: + - include: tasks/main.yml diff --git a/roles/ldap_certs/tasks/main.yml b/roles/ldap_certs/tasks/main.yml new file mode 100644 index 0000000..685cd79 --- /dev/null +++ b/roles/ldap_certs/tasks/main.yml @@ -0,0 +1,16 @@ +--- +- name: ldap_certs get vars + include_vars: default.yml + +- name: ldap_certs get OS vars + include_vars: '{{ item }}' + with_first_found: + - '{{ ansible_distribution }}.yml' + - default.yml + +- name: ldap_certs get host-specific vars + include_vars: '{{ item }}' + with_first_found: + - files: + - 'roles/ldap_certs/hosts/{{ ansible_fqdn }}.yml' + skip: true diff --git a/roles/ldap_certs/vars/FreeBSD.yml b/roles/ldap_certs/vars/FreeBSD.yml new file mode 100644 index 0000000..e55cdee --- /dev/null +++ b/roles/ldap_certs/vars/FreeBSD.yml @@ -0,0 +1,3 @@ +--- +ldap_certs_cert_dir: /usr/local/etc/openldap +ldap_certs_hashlink_dir: /usr/local/etc/openldap diff --git a/roles/ldap_certs/vars/Ubuntu.yml b/roles/ldap_certs/vars/Ubuntu.yml new file mode 100644 index 0000000..0d35cc7 --- /dev/null +++ b/roles/ldap_certs/vars/Ubuntu.yml @@ -0,0 +1,3 @@ +--- +ldap_certs_cert_dir: /etc/ldap/certs +ldap_certs_hashlink_dir: /etc/ldap/cacerts diff --git a/roles/ldap_certs/vars/default.yml b/roles/ldap_certs/vars/default.yml new file mode 100644 index 0000000..10dd8eb --- /dev/null +++ b/roles/ldap_certs/vars/default.yml @@ -0,0 +1,3 @@ +--- +ldap_certs_cert_dir: /etc/openldap/certs +ldap_certs_hashlink_dir: /etc/openldap/cacerts |