diff options
author | B Stack <bgstack15@gmail.com> | 2016-10-06 10:54:16 -0400 |
---|---|---|
committer | B Stack <bgstack15@gmail.com> | 2016-10-06 10:54:16 -0400 |
commit | 44b47fd6e17f8de9f0038d94eb9f6e198c003fab (patch) | |
tree | bf0c1bc525388972dee96ff68158b108748af484 /roles/ldap_certs | |
parent | Fixed filename export process in scrub.py (diff) | |
download | ansible01-44b47fd6e17f8de9f0038d94eb9f6e198c003fab.tar.gz ansible01-44b47fd6e17f8de9f0038d94eb9f6e198c003fab.tar.bz2 ansible01-44b47fd6e17f8de9f0038d94eb9f6e198c003fab.zip |
Fixed a few things, added ldap_certs stub
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 |