aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/config-compute/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'deploy/adapters/ansible/roles/config-compute/tasks')
-rw-r--r--deploy/adapters/ansible/roles/config-compute/tasks/RedHat.yml12
1 files changed, 5 insertions, 7 deletions
diff --git a/deploy/adapters/ansible/roles/config-compute/tasks/RedHat.yml b/deploy/adapters/ansible/roles/config-compute/tasks/RedHat.yml
index 3ec1659f..ff91393d 100644
--- a/deploy/adapters/ansible/roles/config-compute/tasks/RedHat.yml
+++ b/deploy/adapters/ansible/roles/config-compute/tasks/RedHat.yml
@@ -14,20 +14,19 @@
shell: "echo 'nfs 2049/tcp' >> /etc/services; \
echo 'nfs 2049/udp' >> /etc/services"
-# yamllint disable rule:line-length
- name: generate ifcfg-if.tenant
template:
src: ifcfg-if.tenant
- dest: /etc/sysconfig/network-scripts/ifcfg-{{compu_sys_mappings["tenant"]["interface"]}}.{{compu_sys_mappings["tenant"]["vlan_tag"]}}
+ dest: /etc/sysconfig/network-scripts/ifcfg-{{ intf_tenant }}
- name: generate ifcfg-if.storage
template:
src: ifcfg-if.storage
- dest: /etc/sysconfig/network-scripts/ifcfg-{{compu_sys_mappings["storage"]["interface"]}}.{{compu_sys_mappings["storage"]["vlan_tag"]}}
+ dest: /etc/sysconfig/network-scripts/ifcfg-{{ intf_storage }}
- name: add br-external to interface script
lineinfile:
- dest: /etc/sysconfig/network-scripts/ifcfg-{{compu_sys_mappings["external"]["interface"]}}
+ dest: /etc/sysconfig/network-scripts/ifcfg-{{ intf_external }}
line: "BRIDGE=br-external"
- name: remove eth0 ip addresss
@@ -49,14 +48,13 @@
- name: add br-vlan to interface script
lineinfile:
- dest: /etc/sysconfig/network-scripts/ifcfg-{{compu_sys_mappings["storage"]["interface"]}}.{{compu_sys_mappings["storage"]["vlan_tag"]}}
+ dest: /etc/sysconfig/network-scripts/ifcfg-{{ intf_storage }}
line: "BRIDGE=br-storage"
- name: add br-tenant to interface script
lineinfile:
- dest: /etc/sysconfig/network-scripts/ifcfg-{{compu_sys_mappings["tenant"]["interface"]}}.{{compu_sys_mappings["tenant"]["vlan_tag"]}}
+ dest: /etc/sysconfig/network-scripts/ifcfg-{{ intf_tenant }}
line: "BRIDGE=br-tenant"
-# yamllint enable rule:line-length
- name: generate ifcfg-br-mgmt script
template: