diff --git a/README.md b/README.md index 6c7ee2de..6f8e0eb7 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,7 @@ # ansible_heimserver ## example-cli -ansible-playbook playbooks/base/0_master.yml -i inventory --limit jenkins-test.grote.lan --key-file id_rsa_ansible_user --vault-pass-file vault-pass.yml - +`ansible-playbook playbooks/base/0_master.yml -i inventory --limit jenkins-test.grote.lan --key-file id_rsa_ansible_user --vault-pass-file vault-pass.yml` ## install necessary collections `ansible-galaxy collection install -r requirements.yml` @@ -38,8 +37,6 @@ Das vault-secret für die GroupVars wird mit `ansible-vault encrypt_string { + # "msg": { + # "changed": false, + # "failed": false, + # "stat": { + # "exists": false + + + +# - name: admin anlagen +# shell: +# cmd: miniflux -c /etc/miniflux.d/miniflux.conf -migrate +# when: migration_successful_existiert.stat.exists == False + + - name: migration tocuh + file: + path: /etc/miniflux.d/.migration_successful + state: touch + when: migration_successful_existiert.stat.exists == False + + + - name: check if update should be applied + become: yes + stat: + path: "/root/pve-nag-buster/is_installed" + register: "is_installed" + + - name: dbug + debug: + msg: "{{ is_installed }}" + + - name: Ordner "/root/pve-nag-buster" erstellen + become: yes + file: + path: /root/pve-nag-buster + state: directory + when: not is_installed.stat.exists +``` + +### Siehe auch + * https://stackoverflow.com/questions/35654286/how-to-check-if-a-file-exists-in-ansible