From 79bfeda971b869869964f5d8191d191a3aaa4d73 Mon Sep 17 00:00:00 2001 From: Samuli Silvius Date: Tue, 12 Feb 2019 21:08:26 +0200 Subject: package-repository role to streamline playbook Create own role for repository handling to move functionality to roles from playbooks. This will make roles easier to test and make it easier to implement other OS support later. Issue-ID: OOM-1649 Change-Id: Ie8d25f83c54ec9f5a50fc6376a1ba7e166f07132 Signed-off-by: Samuli Silvius --- ansible/infrastructure.yml | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) (limited to 'ansible/infrastructure.yml') 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 -- cgit 1.2.3-korg