{"id":18798881,"url":"https://github.com/opendatach/playbook","last_synced_at":"2026-02-28T10:01:52.192Z","repository":{"id":53593276,"uuid":"57453237","full_name":"OpendataCH/playbook","owner":"OpendataCH","description":"Opendata.ch Ansible Playbook","archived":false,"fork":false,"pushed_at":"2024-11-19T09:58:34.000Z","size":165,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-27T08:11:26.052Z","etag":null,"topics":["ansible"],"latest_commit_sha":null,"homepage":"","language":"Jinja","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OpendataCH.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-04-30T17:10:41.000Z","updated_at":"2024-11-19T09:58:38.000Z","dependencies_parsed_at":"2024-10-20T16:16:40.799Z","dependency_job_id":null,"html_url":"https://github.com/OpendataCH/playbook","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpendataCH%2Fplaybook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpendataCH%2Fplaybook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpendataCH%2Fplaybook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpendataCH%2Fplaybook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OpendataCH","download_url":"https://codeload.github.com/OpendataCH/playbook/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248750867,"owners_count":21155797,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible"],"created_at":"2024-11-07T22:13:14.809Z","updated_at":"2026-02-28T10:01:47.149Z","avatar_url":"https://github.com/OpendataCH.png","language":"Jinja","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Opendata.ch Ansible Playbook\n\n## Usage\n\nMost changes can be made in the file `vars.yml`. Commit and push your changes \nto [GitHub](https://github.com/OpendataCH/playbook) \nand [GitHub Actions](https://github.com/OpendataCH/playbook/actions) will execute the \nfollowing command which applies the changes to the server:\n\n```\nansible-playbook site.yml\n```\n\n### Deleting a DNS record\n\nNote that DNS records are only added or updated with the playbook. If you want \nto delete a DNS record, you have to manually do so. This also applies when \nchanging the type of a DNS record as that's basically a delete and create.\n\nYou can find the `CLOUDFLARE_API_TOKEN` in the Vault.\n\nFetch records:\n\n```\ncurl \"https://api.cloudflare.com/client/v4/zones/c70c67baa5ba6666d60303664a926522/dns_records?per_page=100\" \\\n     -H 'X-Auth-Email: hannes@opendata.ch' \\\n     -H 'X-Auth-Key: CLOUDFLARE_API_TOKEN'\n```\n\nDelete record:\n\n```\ncurl -X \"DELETE\" \"https://api.cloudflare.com/client/v4/zones/c70c67baa5ba6666d60303664a926522/dns_records/DNS_RECORD_ID\" \\\n     -H 'X-Auth-Email: hannes@opendata.ch' \\\n     -H 'X-Auth-Key: CLOUDFLARE_API_TOKEN'\n```\n\n## Vault\n\nTo access the Vault a file with the name `vault_password.txt` needs to exist in \nthe root directory of the project. Ask me for the file.\n\n```\nansible-vault edit vault.yml\n```\n\n## Installation\n\nOnly needed if you want to run Ansible locally to debug something.\n\n```\npip install ansible\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopendatach%2Fplaybook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopendatach%2Fplaybook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopendatach%2Fplaybook/lists"}