Ansible role to deploy a container registry
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

30 lines
774 B

---
- name: Install and Start Docker
when:
- ansible_distribution == "CentOS"
- ansible_distribution_major_version|int < 8
become: true
block:
- name: Install Docker
package:
name: docker
state: present
register: container_registry_docker_install
# Workaround for https://bugs.launchpad.net/tripleo/+bug/1845166/
- name: Disable docker iptables
when: container_registry_docker_disable_iptables
ini_file:
path: /etc/sysconfig/docker-network
section: null
option: DOCKER_NETWORK_OPTIONS
value: --iptables=false
no_extra_spaces: true
mode: '0644'
- name: Start Docker daemon
service:
name: docker
enabled: true
state: started