Skip to content

Instantly share code, notes, and snippets.

@dav1x
Created November 13, 2017 17:38
Show Gist options
  • Save dav1x/9700a6506ea2fc5a6cc177cbef50c9e5 to your computer and use it in GitHub Desktop.
Save dav1x/9700a6506ea2fc5a6cc177cbef50c9e5 to your computer and use it in GitHub Desktop.
---
- block:
- name: be sure all pre-req packages are installed
yum: name={{item}} state=installed
with_items:
- open-vm-tools
- PyYAML
- perl
- net-tools
- chrony
- python-six
- iptables
- iptables-services
- docker
- name: be sure katello-agent is installed
yum: name=katello-agent state=installed
when: rhsm_activation_key is defined and rhsm_activation_key
- name: be sure openvmtools is running and enabled
service: name=vmtoolsd state=started enabled=yes
when:
- ansible_distribution == "RedHat"
- ostree is not defined
- name: be sure chrony is configured
template: src=chrony.conf.j2 dest=/etc/chrony.conf
notify:
- restart chronyd
- name: set link to localtime
command: timedatectl set-timezone {{timezone}}
- name: be sure chronyd is running and enabled
service: name=chronyd state=started enabled=yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment