diff options
author | Wesley Hearn <wesley.s.hearn@gmail.com> | 2015-05-06 10:27:42 -0400 |
---|---|---|
committer | Wesley Hearn <wesley.s.hearn@gmail.com> | 2015-05-06 10:27:42 -0400 |
commit | 1d8e743921a48a5abd2ca75323321f6db261101b (patch) | |
tree | 8f3370fd2d9537a568d97e48ece9e18f3d0032bb /roles/ansible_tower_cli | |
parent | 196d37e2ffa0d7f4221a857b143fd09f84a9d00b (diff) | |
parent | e0b2d98a6cac21cfa555afe4d660cb62c1180856 (diff) | |
download | openshift-1d8e743921a48a5abd2ca75323321f6db261101b.tar.gz openshift-1d8e743921a48a5abd2ca75323321f6db261101b.tar.bz2 openshift-1d8e743921a48a5abd2ca75323321f6db261101b.tar.xz openshift-1d8e743921a48a5abd2ca75323321f6db261101b.zip |
Merge pull request #208 from openshift/master
Merge Master Into INT
Diffstat (limited to 'roles/ansible_tower_cli')
-rw-r--r-- | roles/ansible_tower_cli/README.md | 50 | ||||
-rw-r--r-- | roles/ansible_tower_cli/defaults/main.yml | 2 | ||||
-rw-r--r-- | roles/ansible_tower_cli/handlers/main.yml | 2 | ||||
-rw-r--r-- | roles/ansible_tower_cli/meta/main.yml | 9 | ||||
-rw-r--r-- | roles/ansible_tower_cli/tasks/main.yml | 18 | ||||
-rw-r--r-- | roles/ansible_tower_cli/templates/tower_cli.cfg.j2 | 5 | ||||
-rw-r--r-- | roles/ansible_tower_cli/vars/main.yml | 2 |
7 files changed, 88 insertions, 0 deletions
diff --git a/roles/ansible_tower_cli/README.md b/roles/ansible_tower_cli/README.md new file mode 100644 index 000000000..d2d68146f --- /dev/null +++ b/roles/ansible_tower_cli/README.md @@ -0,0 +1,50 @@ +ansible_tower_cli +============== + +Install ansible-tower-cli rpm. + +Requirements +------------ + +None + +Role Variables +-------------- + +None + +Dependencies +------------ + +None + +Example Playbook +---------------- + +Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too: + + - hosts: servers + roles: + - roles/ansible_tower_cli + +License +------- + +Copyright 2012-2014 Red Hat, Inc., All rights reserved. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + +Author Information +------------------ + +openshift operations diff --git a/roles/ansible_tower_cli/defaults/main.yml b/roles/ansible_tower_cli/defaults/main.yml new file mode 100644 index 000000000..bef66bbfd --- /dev/null +++ b/roles/ansible_tower_cli/defaults/main.yml @@ -0,0 +1,2 @@ +--- +# defaults file for ansible_tower_cli diff --git a/roles/ansible_tower_cli/handlers/main.yml b/roles/ansible_tower_cli/handlers/main.yml new file mode 100644 index 000000000..0ce873648 --- /dev/null +++ b/roles/ansible_tower_cli/handlers/main.yml @@ -0,0 +1,2 @@ +--- +# handlers file for ansible_tower_cli diff --git a/roles/ansible_tower_cli/meta/main.yml b/roles/ansible_tower_cli/meta/main.yml new file mode 100644 index 000000000..41dd23720 --- /dev/null +++ b/roles/ansible_tower_cli/meta/main.yml @@ -0,0 +1,9 @@ +--- +galaxy_info: + author: openshift operations name + description: install ansible-tower-cli + company: Red Hat, inc + license: ASL 2.0 + min_ansible_version: 1.2 +dependencies: [] + diff --git a/roles/ansible_tower_cli/tasks/main.yml b/roles/ansible_tower_cli/tasks/main.yml new file mode 100644 index 000000000..41fac22a0 --- /dev/null +++ b/roles/ansible_tower_cli/tasks/main.yml @@ -0,0 +1,18 @@ +--- +- name: Install python-ansible-tower-cli + yum: name=python-ansible-tower-cli + +- template: + src: tower_cli.cfg.j2 + dest: /etc/tower/tower_cli.cfg + owner: awx + group: awx + mode: 0640 + +- file: + state: link + src: /etc/tower + dest: /etc/awx + owner: awx + group: awx + diff --git a/roles/ansible_tower_cli/templates/tower_cli.cfg.j2 b/roles/ansible_tower_cli/templates/tower_cli.cfg.j2 new file mode 100644 index 000000000..5a0a275b0 --- /dev/null +++ b/roles/ansible_tower_cli/templates/tower_cli.cfg.j2 @@ -0,0 +1,5 @@ +[general] +host = {{ oo_towercli_host }} +username = {{ oo_towercli_username }} +password = {{ oo_towercli_password }} +verify_ssl = true diff --git a/roles/ansible_tower_cli/vars/main.yml b/roles/ansible_tower_cli/vars/main.yml new file mode 100644 index 000000000..a4c9abfb4 --- /dev/null +++ b/roles/ansible_tower_cli/vars/main.yml @@ -0,0 +1,2 @@ +--- +# vars file for ansible_tower_cli |