forked from CCCHH/ansible-infra
		
	docker(role): use better naming
This commit is contained in:
		
					parent
					
						
							
								ce812fb006
							
						
					
				
			
			
				commit
				
					
						89f3e55eac
					
				
			
		
					 4 changed files with 8 additions and 8 deletions
				
			
		| 
						 | 
				
			
			@ -1,11 +1,11 @@
 | 
			
		|||
- name: make sure the Docker repo is setup
 | 
			
		||||
- name: Ensure Docker repo is setup
 | 
			
		||||
  ansible.builtin.import_tasks:
 | 
			
		||||
    file: main/01_repo_setup.yaml
 | 
			
		||||
 | 
			
		||||
- name: make sure Docker Engine and other related packages are installed
 | 
			
		||||
- name: Ensure Docker Engine and other related packages are installed
 | 
			
		||||
  ansible.builtin.import_tasks:
 | 
			
		||||
    file: main/02_docker_install.yaml
 | 
			
		||||
 | 
			
		||||
- name: configure the Docker daemon
 | 
			
		||||
- name: Ensure Docker daemon configuration
 | 
			
		||||
  ansible.builtin.import_tasks:
 | 
			
		||||
    file: main/03_docker_config.yaml
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,4 +1,4 @@
 | 
			
		|||
- name: make sure Dockers GPG key is added
 | 
			
		||||
- name: Ensure Dockers GPG key is added
 | 
			
		||||
  ansible.builtin.get_url:
 | 
			
		||||
    url: https://download.docker.com/linux/debian/gpg
 | 
			
		||||
    dest: /etc/apt/trusted.gpg.d/docker.asc
 | 
			
		||||
| 
						 | 
				
			
			@ -7,7 +7,7 @@
 | 
			
		|||
    group: root
 | 
			
		||||
  become: true
 | 
			
		||||
 | 
			
		||||
- name: make sure Dockers APT repository is added
 | 
			
		||||
- name: Ensure Docker APT repository is added
 | 
			
		||||
  ansible.builtin.apt_repository:
 | 
			
		||||
    repo: "deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/docker.asc] https://download.docker.com/linux/debian {{ ansible_distribution_release }} stable"
 | 
			
		||||
    filename: docker
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,4 +1,4 @@
 | 
			
		|||
- name: make sure Docker Engine and other related packages are installed
 | 
			
		||||
- name: Ensure Docker Engine and other related packages are installed
 | 
			
		||||
  ansible.builtin.apt:
 | 
			
		||||
    name:
 | 
			
		||||
      - docker-ce
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
# Configure the Docker daemon with the following settings:
 | 
			
		||||
# Ensure the Docker daemon is configured with the following settings:
 | 
			
		||||
# - log to systemd journal
 | 
			
		||||
#   https://docs.docker.com/engine/logging/drivers/journald/
 | 
			
		||||
- name: configure Docker daemon
 | 
			
		||||
- name: Ensure Docker daemon configuration
 | 
			
		||||
  ansible.builtin.copy:
 | 
			
		||||
    src: daemon.json
 | 
			
		||||
    dest: /etc/docker/daemon.json
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue