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,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
|
||||
|
|
15
mise.toml
15
mise.toml
|
@ -1,9 +1,5 @@
|
|||
[tools]
|
||||
python = "3.13"
|
||||
|
||||
[env._.python.venv]
|
||||
path = "venv"
|
||||
create = true
|
||||
[env]
|
||||
_.python.venv = ".venv"
|
||||
|
||||
[[hooks.enter]]
|
||||
shell = "fish"
|
||||
|
@ -21,9 +17,10 @@ script = """
|
|||
[[hooks.enter]]
|
||||
shell = "zsh"
|
||||
script = """
|
||||
export YC_TOKEN=$(yc iam create-token)
|
||||
export YC_CLOUD_ID=$(yc config get cloud-id)
|
||||
export YC_FOLDER_ID=$(yc config get folder-id)
|
||||
YC_TOKEN=$(yc iam create-token)
|
||||
YC_CLOUD_ID=$(yc config get cloud-id)
|
||||
YC_FOLDER_ID=$(yc config get folder-id)
|
||||
export YC_TOKEN YC_CLOUD_ID YC_FOLDER_ID
|
||||
"""
|
||||
[[hooks.leave]]
|
||||
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