Created
January 23, 2018 23:24
-
-
Save mateobur/7c6456695758aaf72c746bb65dcafce2 to your computer and use it in GitHub Desktop.
Prepare OpenShift Ansible Sysdig hosts
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
--- | |
- hosts: nodes | |
gather_facts: no | |
pre_tasks: | |
- name: 'install python2' | |
raw: sudo yum install -y python | |
tasks: | |
- name: upgrade packages | |
yum: state=latest name={{ item }} | |
with_items: | |
- docker | |
- NetworkManager | |
- name: enable network-manager | |
shell: systemctl enable NetworkManager && systemctl start NetworkManager | |
- name: docker storage conf file | |
copy: | |
content: "DEVS=/dev/xvdb\nVG=docker-vg\n" | |
dest: /etc/sysconfig/docker-storage-setup | |
- name: docker-storage-setup | |
shell: docker-storage-setup | |
- name: enable docker | |
shell: systemctl enable docker && systemctl start docker |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment