chore(ghost): improve role task names and fix mount permissions
This commit is contained in:
		@@ -36,3 +36,4 @@ ghost_container_restart_policy: "unless-stopped"
 | 
				
			|||||||
ghost_container_networks: ~
 | 
					ghost_container_networks: ~
 | 
				
			||||||
ghost_container_purge_networks: ~
 | 
					ghost_container_purge_networks: ~
 | 
				
			||||||
ghost_container_etc_hosts: ~
 | 
					ghost_container_etc_hosts: ~
 | 
				
			||||||
 | 
					ghost_container_state: started
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -16,15 +16,16 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
- name: Ensure host paths for docker volumes exist for ghost
 | 
					- name: Ensure host paths for docker volumes exist for ghost
 | 
				
			||||||
  ansible.builtin.file:
 | 
					  ansible.builtin.file:
 | 
				
			||||||
    path: "{{ item }}"
 | 
					    path: "{{ item.path }}"
 | 
				
			||||||
    state: directory
 | 
					    state: directory
 | 
				
			||||||
    mode: "0750"
 | 
					    mode: "0750"
 | 
				
			||||||
    owner: "{{ ghost_user }}"
 | 
					    owner: "{{ item.owner | default(ghost_user) }}"
 | 
				
			||||||
    group: "{{ ghost_user_group }}"
 | 
					    group: "{{ item.group | default(ghost_user_group) }}"
 | 
				
			||||||
  loop:
 | 
					  loop:
 | 
				
			||||||
    - "{{ ghost_base_path }}"
 | 
					    - path: "{{ ghost_base_path }}"
 | 
				
			||||||
    - "{{ ghost_data_path }}"
 | 
					    - path: "{{ ghost_data_path }}"
 | 
				
			||||||
    - "{{ ghost_config_path }}"
 | 
					      owner: "1000"
 | 
				
			||||||
 | 
					    - path: "{{ ghost_config_path }}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Ensure ghost configuration file is templated
 | 
					- name: Ensure ghost configuration file is templated
 | 
				
			||||||
  ansible.builtin.template:
 | 
					  ansible.builtin.template:
 | 
				
			||||||
@@ -41,7 +42,7 @@
 | 
				
			|||||||
    source: pull
 | 
					    source: pull
 | 
				
			||||||
    force_source: "{{ ghost_container_image_tag is defined }}"
 | 
					    force_source: "{{ ghost_container_image_tag is defined }}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Ensure ghost container is running
 | 
					- name: Ensure ghost container '{{ ghost_container_name }}' is {{ ghost_container_state }}
 | 
				
			||||||
  community.docker.docker_container:
 | 
					  community.docker.docker_container:
 | 
				
			||||||
    name: "{{ ghost_container_name }}"
 | 
					    name: "{{ ghost_container_name }}"
 | 
				
			||||||
    image: "{{ ghost_container_image }}"
 | 
					    image: "{{ ghost_container_image }}"
 | 
				
			||||||
@@ -53,4 +54,4 @@
 | 
				
			|||||||
    networks: "{{ ghost_container_networks | default(omit, true) }}"
 | 
					    networks: "{{ ghost_container_networks | default(omit, true) }}"
 | 
				
			||||||
    purge_networks: "{{ ghost_container_purge_networks | default(omit, true) }}"
 | 
					    purge_networks: "{{ ghost_container_purge_networks | default(omit, true) }}"
 | 
				
			||||||
    restart_policy: "{{ ghost_container_restart_policy }}"
 | 
					    restart_policy: "{{ ghost_container_restart_policy }}"
 | 
				
			||||||
    state: started
 | 
					    state: "{{ ghost_container_state }}"
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user