forked from CCCHH/ansible-infra
		
	
		
			
				
	
	
		
			33 lines
		
	
	
	
		
			1 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
	
		
			1 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
- name: Ensure NGINX repo setup and nginx install on relevant hosts
 | 
						|
  hosts: nginx_hosts:nextcloud_hosts
 | 
						|
  tasks:
 | 
						|
    - name: Ensure NGINX repo is setup
 | 
						|
      ansible.builtin.include_role:
 | 
						|
        name: nginx
 | 
						|
        tasks_from: main/02_repo_setup.yaml
 | 
						|
 | 
						|
    - name: Ensure nginx is installed
 | 
						|
      ansible.builtin.include_role:
 | 
						|
        name: nginx
 | 
						|
        tasks_from: main/03_nginx_install.yaml
 | 
						|
 | 
						|
- name: Ensure Docker repo setup and package install on relevant hosts
 | 
						|
  hosts: docker_compose_hosts:nextcloud_hosts
 | 
						|
  tasks:
 | 
						|
    - name: Ensure Docker repo is setup
 | 
						|
      ansible.builtin.include_role:
 | 
						|
        name: docker
 | 
						|
        tasks_from: main/01_repo_setup.yaml
 | 
						|
 | 
						|
    - name: Ensure Docker Engine and other related packages are installed
 | 
						|
      ansible.builtin.include_role:
 | 
						|
        name: docker
 | 
						|
        tasks_from: main/02_docker_install.yaml
 | 
						|
 | 
						|
- name: Make Sure System Package Are Up-To-Date for all non-hypervisors
 | 
						|
  hosts: all:!hypervisors
 | 
						|
  roles:
 | 
						|
    - apt_update_and_upgrade
 | 
						|
 | 
						|
- name: Run deploy Playbook
 | 
						|
  ansible.builtin.import_playbook: deploy.yaml
 |