mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-04 22:52:17 +08:00
19 lines
502 B
YAML
19 lines
502 B
YAML
- name: copy ifcfg-eth1
|
|
copy: src="ifcfg-eth1" dest=/etc/sysconfig/network-scripts/ owner=root group=root mode=644
|
|
|
|
- name: enable network-manager to use the /etc/sysconfig/network-scripts
|
|
ini_file:
|
|
path: /etc/NetworkManager/NetworkManager.conf
|
|
section: main
|
|
option: plugins
|
|
value: ifcfg-rh
|
|
backup: yes
|
|
notify:
|
|
- restart NetworkManager
|
|
|
|
- name: set up gateway
|
|
lineinfile: dest=/etc/sysconfig/network line="GATEWAYDEV=eth0"
|
|
|
|
- name: restart network
|
|
meta: flush_handlers
|