k3s setup and git action runner
This commit is contained in:
@@ -19,7 +19,7 @@ git clone -q --depth 1 --branch master https://github.com/arcodange/ssh-agent.gi
|
||||
docker run -d --name=ssh-agent docker-ssh-agent:latest
|
||||
docker run --rm --volumes-from=ssh-agent -v ~/.ssh:/.ssh -it docker-ssh-agent:latest ssh-add /root/.ssh/id_rsa
|
||||
docker run --rm -u root --name test --volumes-from=ssh-agent -v $PWD:/home/arcodange/code arcodange-ansible:0.0.0 \
|
||||
ansible-playbook ansible/arcodange/factory/playbooks/setup/setup.yml -i ansible/arcodange/factory/inventory -vv
|
||||
ansible-playbook ansible/arcodange/factory/playbooks/setup/01_system.yml -i ansible/arcodange/factory/inventory -vv
|
||||
```
|
||||
|
||||
### a tool to reuse a ssh agent (not required)
|
||||
@@ -43,4 +43,9 @@ ssh-add ~/.ssh/id_rsa
|
||||
|
||||
```sh
|
||||
ansible -i ,localhost -c local localhost -m raw -a "echo hello world {{ inventory_hostname }} : {{ hostvars | to_nice_json | regex_replace(\"['\n]\",' ') }}"
|
||||
```
|
||||
```
|
||||
|
||||
### local python environment with pipx
|
||||
|
||||
#### add dependency
|
||||
- `pipx runpip ansible-core install dnspython`
|
||||
Reference in New Issue
Block a user