Skip to content

Instantly share code, notes, and snippets.

@mateobur
Created January 23, 2018 23:24
Show Gist options
  • Save mateobur/7c6456695758aaf72c746bb65dcafce2 to your computer and use it in GitHub Desktop.
Save mateobur/7c6456695758aaf72c746bb65dcafce2 to your computer and use it in GitHub Desktop.
Prepare OpenShift Ansible Sysdig hosts
---
- 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