Sets Ansible Tower LDAP settings. This role is a wrapper for the tower_ldap_settings Ansible module that is included in this role.
- ansible-tower-cli >= 3.1. Install using the
pip install ansible-tower-clicommand on the Ansible server.
server_name:: LDAP server namebind_dn: LDAP Bind DNbind_password: LDAP Bind DN passworduser_search: List of LDAP user search filters. Must be a listgroup_search: Single LDAP group search filter. Must be a stringsuperuser: Group or User DN defining users with superuser Tower privileges.organization_map: List of dictionaries that map Tower organizations to User or Group LDAP DNs. Each directory has the following structure:- organization: name of the organization
- users: Users in this Group DN will be placed in this organization
- admins: Users in this Group DN have admin rights within the Tower organization.
team_map: List of dictionaries that map Tower teams to User or Group LDAP DNs. Each directory has the following structure:- team: team name
- organization: name of the organization the team belongs to
- users: Users in this Group DN will be placed in this team
ldap_state: when set toabsentall LDAP configuration is deleted. Defaults topresent.host: Tower hostnameusername: Tower username. This username must have superuser privileges in order to modify LDAP settings.password: Tower user password.
- hosts: localhost
connection: local
roles:
- role: tower_ldap_settings
ldap_state: present
server_name: ldapserver.example.local
bind_dn: "cn=binduser, OU=Users, DC=example,DC=local"
bind_password: "{{ vault_bind_pass }}"
user_search:
- "ou=users,dc=example,dc=local"
group_search: "ou=groups,ou=example, dc=local"
superuser: "cn=toweruser, ou=users,dc=example,dc=local"
organization_map:
- organization: webapp
users: "cn=webapp, ou=groups,dc=example,dc=local"
admins: "ou=webadmins,ou=groups,dc=example,dc=local"
team_map:
- team: webapp_admins
organization: webapp
users: "cn=webadmins,ou=groups,dc=example,dc=local"
host: tower.example.local
username: "{{ vault_tower_user }}"
password: "{{ vault_tower_pass }}"
MIT
Twitter: @linuxsimba