Skip to content

Aplyca/ansible-role-ansibletower

Repository files navigation

Ansible Role: AnsibleTower

Build Status Circle CI

Ansible Role for standard creation of roles.

Requirements

Use hash behavior for variables in ansible.cfg See example: https://github.com/Aplyca/ansible-role-ansibletower/blob/master/tests/ansible.cfg See official docs: http://docs.ansible.com/intro_configuration.html#hash-behaviour

Installation

Using ansible galaxy:

ansible-galaxy install Aplyca.AnsibleTower

You can add this role as a dependency for other roles, add the role to the meta/main.yml file of your own role:

dependencies:
  - { role: Aplyca.AnsibleTower }

Role Variables

See default variables: https://github.com/Aplyca/ansible-role-ansibletower/blob/master/defaults/main.yml

Cretae a new role using this as boilerplate

git clone [email protected]:Aplyca/ansible-role-ansibletower.git NewRole;
cd NewRole;
rm -rf .git;
find ./ -type f -exec sed -i '' -e 's/ansibletower/newrole/g' {} \;
find ./ -type f -exec sed -i '' -e 's/Ansible Tower/New Role/g' {} \;
find ./ -type f -exec sed -i '' -e 's/AnsibleTower/NewRole/g' {} \;
find . -name "ansibletower.*" -exec sh -c 'mv "$1" "$(dirname ${1})/newrole."${1##*.}""' _ {} \;

Dependencies

None.

Testing

Using Vagrant:

tests/vagrant.sh

Using Docker:

tests/docker.sh

License

MIT / BSD

Author Information

Mauricio Sánchez from Aplyca SAS (http://www.aplyca.com)

Releases

No releases published

Packages

No packages published

Languages