diff --git a/roles/common/tasks/main.yml b/roles/common/tasks/main.yml index aaa9f19..ea3ba02 100644 --- a/roles/common/tasks/main.yml +++ b/roles/common/tasks/main.yml @@ -12,6 +12,10 @@ when: ansible_distribution == 'Ubuntu' tags: packages +- include: packages_Debian.yml + when: ansible_distribution == 'Debian' + tags: packages + - include: iptables_Debian.yml when: ansible_os_family == 'Debian' tags: firewall diff --git a/roles/common/tasks/packages_Debian.yml b/roles/common/tasks/packages_Debian.yml new file mode 100644 index 0000000..6e79b08 --- /dev/null +++ b/roles/common/tasks/packages_Debian.yml @@ -0,0 +1,35 @@ +--- +- name: Configure apt mirror + template: src=sources.list.j2 dest=/etc/apt/sources.list owner=root group=root mode=0644 + +- name: Install base packages + apt: name={{ item }} update_cache=yes + with_items: + - git + - tmux + - iotop + - htop + - strace + - cron-apt #how does this work with systemd? + - safe-rm + - debian-goodies + - mosh + - python-pycurl # for ansible's apt_repository + - lzop + - vim + - lrzip + - unzip + +- name: Configure cron-apt (config) + copy: src=cron-apt/config dest=/etc/cron-apt/config mode=0644 owner=root group=root + +- name: Configure cron-apt (config) + copy: src=cron-apt/3-download dest=/etc/cron-apt/action.d/3-download mode=0644 owner=root group=root + +- name: Configure cron-apt (security) + copy: src=cron-apt/security.sources.list dest=/etc/apt/security.sources.list mode=0644 owner=root group=root + +- name: Enable systemd-timesyncd + service: name=systemd-timesyncd state=started enabled=yes + +# vim: set sw=2 ts=2: