This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| - name: Check if initial setup is required | |
| ansible.builtin.stat: | |
| path: "{{ organizr.config.path }}{{ organizr.setup.db.path | replace('/config', '') }}" | |
| register: db_folder | |
| - name: Setup wizard | |
| block: | |
| - name: Get organizr container IP address | |
| ansible.builtin.shell: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Cloudflare as Dynamic DNS | |
| # Forked from: https://gist.github.com/Firsh/c9f72970eaae3aec04beb1106cc304bc | |
| # Edited to: * use api token instead of global api key (more secure) | |
| # * remove duplicate requirement of zone & record names | |
| # * automatically create DNS record if one does not exist | |
| # Update these with real values | |
| # api token needs "DNS.Edit" permissions for the zone you want to update | |
| api_token="API_TOKEN" |