summary refs log tree commit diff stats
path: root/tag-vagrant/vagrant.d/ansible/debian.yml
blob: 9e06af692c81254f8b1462f4547009f2532447b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
- get_url:
    url: https://thoughtbot.github.io/rcm/debs/rcm_1.2.2-2_all.deb
    dest: /tmp/rcm.deb

- command: dpkg --skip-same-version -i /tmp/rcm.deb
  register: dpkg
  changed_when: "dpkg.stdout.startswith('Selecting')"

- name: Ensure that tools are installed
  with_items: packages
  apt:
    pkg: "{{ item }}"
    state: present
    cache_valid_time: 86400
    update_cache: yes