Last active
December 8, 2015 09:26
-
-
Save barlog-m/b993b32f27aabc3e4512 to your computer and use it in GitHub Desktop.
vagrant ubuntu ansible provision playbook
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: Provision | |
hosts: all | |
sudo: yes | |
tasks: | |
- name: Upgrade | |
apt: upgrade=dist | |
- name: Locale install | |
apt: name=language-pack-ru state=latest update_cache=yes cache_valid_time=3600 | |
- name: Locale enable | |
shell: locale-gen ru_RU.UTF-8 | |
- name: Disable UFW | |
shell: ufw disable | |
- name: Zeroconfig | |
apt: name=avahi-utils state=latest update_cache=yes cache_valid_time=3600 | |
- apt: name=avahi-dnsconfd state=latest update_cache=yes cache_valid_time=3600 | |
- name: Disable IPv6 | |
lineinfile: dest=/etc/sysctl.conf regexp="^net.ipv6.conf.all.disable_ipv6 =" line="net.ipv6.conf.all.disable_ipv6 = 1" | |
- lineinfile: dest=/etc/sysctl.conf regexp="^net.ipv6.conf.default.disable_ipv6 =" line="net.ipv6.conf.default.disable_ipv6 = 1" | |
- lineinfile: dest=/etc/sysctl.conf regexp="^net.ipv6.conf.lo.disable_ipv6 =" line="net.ipv6.conf.lo.disable_ipv6 = 1" | |
- shell: sysctl -p | |
- name: Apply hostname | |
service: name=avahi-daemon state=restarted |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment