diff options
author | Michal Ptacek <m.ptacek@partner.samsung.com> | 2019-03-04 13:23:31 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-03-04 13:23:31 +0000 |
commit | 01406c1085b585550f1e0294d35a9a52bcd43656 (patch) | |
tree | 142095293c8d74611f23da074612e0a2dbbbb93b /ansible/infrastructure.yml | |
parent | 2879662c73c18bf55a612f57fc3fcacf67eb253f (diff) | |
parent | 79bfeda971b869869964f5d8191d191a3aaa4d73 (diff) |
Merge "package-repository role to streamline playbook"
Diffstat (limited to 'ansible/infrastructure.yml')
-rw-r--r-- | ansible/infrastructure.yml | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/ansible/infrastructure.yml b/ansible/infrastructure.yml index e4715a9c..89d63e89 100644 --- a/ansible/infrastructure.yml +++ b/ansible/infrastructure.yml @@ -1,28 +1,8 @@ --- - name: Perform common environment setup for nodes hosts: infrastructure, kubernetes - tasks: - - name: Setup resolv.conf - lineinfile: - line: "nameserver {{ hostvars[groups.infrastructure[0]].cluster_ip }}" - path: /etc/resolv.conf - state: present - insertbefore: BOF - become: yes - - name: Add application offline rpm repository - yum_repository: - name: "{{ app_name }}" - file: "{{ app_name | lower }}" - description: "{{ app_name }} offline repository" - baseurl: "{{ 'http://repo.infra-server/rhel' if 'infrastructure' not in group_names else 'file://' + app_data_path + '/pkg/rhel' }}" - gpgcheck: no - enabled: yes - when: deploy_rpm_repository - become: yes - -- name: Setup firewall - hosts: infrastructure, kubernetes roles: + - package-repository - role: firewall vars: state: disable |