Skip to content

Instantly share code, notes, and snippets.

@barlog-m
Last active December 8, 2015 09:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save barlog-m/b993b32f27aabc3e4512 to your computer and use it in GitHub Desktop.
Save barlog-m/b993b32f27aabc3e4512 to your computer and use it in GitHub Desktop.
vagrant ubuntu ansible provision playbook
---
- 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