Skip to content

Commit

Permalink
Merge pull request #8 from victorock/dev
Browse files Browse the repository at this point in the history
v0.1b
  • Loading branch information
victorock authored Mar 6, 2019
2 parents 7153916 + 392cafd commit fc06f53
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 22 deletions.
11 changes: 2 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Simple Role to Configure Ansible Tower by Red Hat.
Requirements
------------

None
`ansible-tower-cli`

Role Variables
--------------
Expand Down Expand Up @@ -280,15 +280,8 @@ tower_config:
Dependencies
------------

The following dependencies are defined in `meta/main.yml`:

```YAML
dependencies:
- role: geerlingguy.pip
pip_install_packages:
- name: ansible-tower-cli
None

```
Example Playbook
----------------

Expand Down
5 changes: 1 addition & 4 deletions meta/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
dependencies:
- role: geerlingguy.pip
pip_install_packages:
- name: ansible-tower-cli
dependencies: []

galaxy_info:
role_name: tower_config
Expand Down
4 changes: 1 addition & 3 deletions tasks/config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
- name: "Configure Variables"
import_tasks: "config/variables.yml"

---
- name: "Configure Tower-CLI"
import_tasks: "config/tower_cli.yml"

Expand Down
3 changes: 0 additions & 3 deletions tasks/config/variables.yml

This file was deleted.

8 changes: 5 additions & 3 deletions tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
- name: "Combine Configuration Hashes from User and Role"
set_fact:
tower_config: "{{ _tower_config | combine(tower_config) }}"

- name: "config.yml"
import_tasks: config.yml
environment:
PATH: "{{ _tower_config.awx_venv }}:{{ ansible_env.PATH }}"
import_tasks: config.yml

0 comments on commit fc06f53

Please sign in to comment.