Skip to content

Instantly share code, notes, and snippets.

@debianmaster
Created February 27, 2019 00:35
Show Gist options
  • Select an option

  • Save debianmaster/1c3a3288a3a1a8b323f45f5f2c2df4ea to your computer and use it in GitHub Desktop.

Select an option

Save debianmaster/1c3a3288a3a1a8b323f45f5f2c2df4ea to your computer and use it in GitHub Desktop.
ansible all -m shell -a 'yum install epel-release wget git net-tools bind-utils yum-utils iptables-services bridge-utils bash-completion kexec-tools sos psacct NetworkManager dnsmasq -y'
ansible all -m shell -a 'systemctl enable NetworkManager'
ansible all -m shell -a 'systemctl restart NetworkManager'
ansible all -m shell -a "yum install docker -y"
ansible all -m shell -a "sudo yum update -y"
ansible all -m shell -a "/usr/bin/needs-restarting -r"
ansible all -m shell -a "sudo date"
ansible all -m copy -a "remote_src=yes src=/etc/resolv.conf dest=/etc/resolv.conf.vanilla"
ansible all -m lineinfile -a "path=/etc/sysconfig/network-scripts/ifcfg-eth0 line=NM_CONTROLLED='yes'"
ansible all -m lineinfile -a "path=/etc/sysconfig/network-scripts/ifcfg-eth0 line=PEERDNS='no'"
ansible all -m sysctl -a "name=net.ipv4.ip_forward value=1 sysctl_set=yes state=present reload=yes"
ansible all -m sysctl -a "name=net.ipv6.conf.all.disable_ipv6 value=1 sysctl_set=yes state=present reload=yes"
ansible all -m sysctl -a "name=net.ipv6.conf.default.disable_ipv6 value=1 sysctl_set=yes state=present reload=yes"
ansible masters -m shell -a "yum install httpd-tools -y"
ansible all -m shell -a "yum install samba-client samba-common cifs-utils -y"
ansible all -m shell -a "ping -c 1 mirrorlist.centos.org"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment