uv
This commit is contained in:
		
							parent
							
								
									a3482c92a6
								
							
						
					
					
						commit
						871d1f6ae1
					
				
					 4 changed files with 26 additions and 14 deletions
				
			
		
							
								
								
									
										4
									
								
								.gitignore
									
										
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								.gitignore
									
										
									
									
										vendored
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,4 @@
 | 
				
			||||||
 | 
					.mise.toml
 | 
				
			||||||
 | 
					.venv
 | 
				
			||||||
 | 
					mise.toml
 | 
				
			||||||
 | 
					uv.lock
 | 
				
			||||||
| 
						 | 
					@ -3,7 +3,7 @@
 | 
				
			||||||
  gather_facts: false
 | 
					  gather_facts: false
 | 
				
			||||||
  hosts: all
 | 
					  hosts: all
 | 
				
			||||||
  tasks:
 | 
					  tasks:
 | 
				
			||||||
    - name: check 22/tcp
 | 
					    - name: Check port
 | 
				
			||||||
      ansible.builtin.wait_for:
 | 
					      ansible.builtin.wait_for:
 | 
				
			||||||
        port: 22
 | 
					        port: 22
 | 
				
			||||||
        connect_timeout: 30
 | 
					        connect_timeout: 30
 | 
				
			||||||
| 
						 | 
					@ -12,18 +12,21 @@
 | 
				
			||||||
  become: true
 | 
					  become: true
 | 
				
			||||||
  hosts: all
 | 
					  hosts: all
 | 
				
			||||||
  tasks:
 | 
					  tasks:
 | 
				
			||||||
    - name: install nginx
 | 
					    - name: Install
 | 
				
			||||||
      ansible.builtin.apt:
 | 
					      ansible.builtin.apt:
 | 
				
			||||||
        name: nginx
 | 
					        name: nginx
 | 
				
			||||||
        state: present
 | 
					        state: present
 | 
				
			||||||
        update_cache: true
 | 
					        update_cache: true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    - name: copy config
 | 
					    - name: Config
 | 
				
			||||||
      ansible.builtin.template:
 | 
					      ansible.builtin.template:
 | 
				
			||||||
        src: nginx.conf.j2
 | 
					        src: nginx.conf.j2
 | 
				
			||||||
        dest: /etc/nginx/nginx.conf
 | 
					        dest: /etc/nginx/nginx.conf
 | 
				
			||||||
 | 
					        mode: '0644'
 | 
				
			||||||
 | 
					        user: root
 | 
				
			||||||
 | 
					        group: root
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    - name: restart service
 | 
					    - name: Restart
 | 
				
			||||||
      ansible.builtin.service:
 | 
					      ansible.builtin.service:
 | 
				
			||||||
        name: nginx
 | 
					        name: nginx
 | 
				
			||||||
        state: restarted
 | 
					        state: restarted
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										15
									
								
								mise.toml
									
										
									
									
									
								
							
							
						
						
									
										15
									
								
								mise.toml
									
										
									
									
									
								
							| 
						 | 
					@ -1,9 +1,5 @@
 | 
				
			||||||
[tools]
 | 
					[env]
 | 
				
			||||||
python = "3.13"
 | 
					_.python.venv = ".venv"
 | 
				
			||||||
 | 
					 | 
				
			||||||
[env._.python.venv]
 | 
					 | 
				
			||||||
path = "venv"
 | 
					 | 
				
			||||||
create = true
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
[[hooks.enter]]
 | 
					[[hooks.enter]]
 | 
				
			||||||
shell = "fish"
 | 
					shell = "fish"
 | 
				
			||||||
| 
						 | 
					@ -21,9 +17,10 @@ script = """
 | 
				
			||||||
[[hooks.enter]]
 | 
					[[hooks.enter]]
 | 
				
			||||||
shell = "zsh"
 | 
					shell = "zsh"
 | 
				
			||||||
script = """
 | 
					script = """
 | 
				
			||||||
  export YC_TOKEN=$(yc iam create-token)
 | 
					  YC_TOKEN=$(yc iam create-token)
 | 
				
			||||||
  export YC_CLOUD_ID=$(yc config get cloud-id)
 | 
					  YC_CLOUD_ID=$(yc config get cloud-id)
 | 
				
			||||||
  export YC_FOLDER_ID=$(yc config get folder-id)
 | 
					  YC_FOLDER_ID=$(yc config get folder-id)
 | 
				
			||||||
 | 
					  export YC_TOKEN YC_CLOUD_ID YC_FOLDER_ID
 | 
				
			||||||
"""
 | 
					"""
 | 
				
			||||||
[[hooks.leave]]
 | 
					[[hooks.leave]]
 | 
				
			||||||
shell = "zsh"
 | 
					shell = "zsh"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										8
									
								
								pyproject.toml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								pyproject.toml
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,8 @@
 | 
				
			||||||
 | 
					[project]
 | 
				
			||||||
 | 
					name = "yatf"
 | 
				
			||||||
 | 
					version = "0.1.0"
 | 
				
			||||||
 | 
					readme = "README.md"
 | 
				
			||||||
 | 
					requires-python = ">=3.13"
 | 
				
			||||||
 | 
					dependencies = [
 | 
				
			||||||
 | 
					    "ansible>=11.4.0",
 | 
				
			||||||
 | 
					]
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue