imfreedom/teamcity-ansible

5f70c4885fc2
Parents 0094b5c9cc54
Children fdec130f94c7
Add a role to install cron-apt if we're running on debian
--- a/agent.yml Wed Jun 17 04:31:26 2020 -0500
+++ b/agent.yml Thu Jul 23 00:14:13 2020 -0500
@@ -1,6 +1,7 @@
---
- hosts: convey
roles:
+ - role: cron-apt
- role: qemu-user-static
- role: docker
- role: convey
@@ -14,6 +15,7 @@
teamcity_server: https://ci.imfreedom.org/
- hosts: simple
roles:
+ - role: cron-apt
- role: mercurial
- role: git
- role: meson
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/roles/cron-apt/tasks/main.yml Thu Jul 23 00:14:13 2020 -0500
@@ -0,0 +1,9 @@
+---
+- name: install cron-apt
+ apt:
+ name: cron-apt
+ state: present
+ force_apt_get: true
+ update_cache: true
+ when: ansible_facts['os_family'] == "Debian"
+