docker-swarm/README.md
hcornet 4d45e3a7cb
Some checks failed
Run ansible / run-ansible-playbook (push) Failing after 1m20s
Update CI/CD
2025-02-10 19:34:36 +01:00

61 lines
1.0 KiB
Markdown

# ${REPO_NAME}
${REPO_DESCRIPTION}
# A propos de
# Prérequis
Vous avez besoin d'une installation Ansible fonctionnelle sur votre machine.
~~~bash
./install-ansible.sh
~~~
## Edition du fichier Hosts
~~~bash
sudo nano /etc/ansible/hosts
~~~
## Creation clé SSH
~~~bash
ssh-keygen -t ed25519 -C "ansible"
~~~
## Permissions clé SSH
~~~bash
chmod 600 ~/.ssh/ansible
~~~
## Ping Command Ansible
~~~bash
ansible all -m ping
~~~
## Copier clé SSH
~~~bash
ssh-copy-id -i ~/.ssh/ansible.pub 10.0.4.150
~~~
## Ping Command Ansible avec nouvelle clé SSH
~~~bash
ansible all -m ping --key-file ~/.ssh/ansible
~~~
# Démarrage
~~~bash
git clone https://gitea.tips-of-mine.com${REPO_LINK}.git
cd ${REPO_NAME}
~~~
## Personnalisation
## Lancement
~~~bash
./ansible-playbook site.yml --key-file ~/.ssh/id_rsa
~~~
# Buy me a coffe
<a href='https://ko-fi.com/R5R2KNI3N' target='_blank'><img height='36' style='border:0px;height:36px;' src='https://storage.ko-fi.com/cdn/kofi4.png?v=3' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a>