uv
This commit is contained in:
		
							parent
							
								
									a3482c92a6
								
							
						
					
					
						commit
						871d1f6ae1
					
				
					 4 changed files with 26 additions and 14 deletions
				
			
		| 
						 | 
				
			
			@ -3,27 +3,30 @@
 | 
			
		|||
  gather_facts: false
 | 
			
		||||
  hosts: all
 | 
			
		||||
  tasks:
 | 
			
		||||
    - name: check 22/tcp
 | 
			
		||||
    - name: Check port
 | 
			
		||||
      ansible.builtin.wait_for:
 | 
			
		||||
        port: 22
 | 
			
		||||
        connect_timeout: 30
 | 
			
		||||
  
 | 
			
		||||
 | 
			
		||||
- name: Configure nginx
 | 
			
		||||
  become: true
 | 
			
		||||
  hosts: all
 | 
			
		||||
  tasks:
 | 
			
		||||
    - name: install nginx
 | 
			
		||||
    - name: Install
 | 
			
		||||
      ansible.builtin.apt:
 | 
			
		||||
        name: nginx
 | 
			
		||||
        state: present
 | 
			
		||||
        update_cache: true
 | 
			
		||||
 | 
			
		||||
    - name: copy config
 | 
			
		||||
    - name: Config
 | 
			
		||||
      ansible.builtin.template:
 | 
			
		||||
        src: nginx.conf.j2
 | 
			
		||||
        dest: /etc/nginx/nginx.conf
 | 
			
		||||
        mode: '0644'
 | 
			
		||||
        user: root
 | 
			
		||||
        group: root
 | 
			
		||||
 | 
			
		||||
    - name: restart service
 | 
			
		||||
    - name: Restart
 | 
			
		||||
      ansible.builtin.service:
 | 
			
		||||
        name: nginx
 | 
			
		||||
        state: restarted
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue