Add fsol02.home.foo.sh
This commit is contained in:
parent
f73ca08805
commit
3ad51924eb
5 changed files with 118 additions and 0 deletions
32
playbooks/fsol.yml
Normal file
32
playbooks/fsol.yml
Normal file
|
@ -0,0 +1,32 @@
|
|||
---
|
||||
- import_playbook: "include/deploy-kvm-guest.yml myhosts=fsol"
|
||||
|
||||
- name: configure instance
|
||||
hosts: fsol
|
||||
user: root
|
||||
gather_facts: true
|
||||
|
||||
vars_files:
|
||||
- "{{ ansible_private }}/vars.yml"
|
||||
|
||||
tasks:
|
||||
- name: enable ip forwarding
|
||||
sysctl:
|
||||
name: "{{ item }}"
|
||||
sysctl_set: true
|
||||
value: "1"
|
||||
with_items:
|
||||
- net.inet.ip.forwarding
|
||||
- net.inet6.ip6.forwarding
|
||||
- name: use manual dns servers
|
||||
copy:
|
||||
dest: /etc/dhclient.conf
|
||||
content: "ignore domain-name-servers, domain-name;\n"
|
||||
mode: 0644
|
||||
owner: root
|
||||
group: "{{ ansible_wheel }}"
|
||||
|
||||
roles:
|
||||
- base
|
||||
- bird
|
||||
- openvpn
|
Loading…
Add table
Add a link
Reference in a new issue