You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 

26 lines
804 B

---
- name: Ensure the system can use the HTTPS transport for APT
stat: path=/usr/lib/apt/methods/https
register: apt_https_transport
- name: Install HTTPS transport for APT
apt: pkg=apt-transport-https state=installed
when: not apt_https_transport.stat.exists
- name: Enable all repositories in sources.list
replace: dest=/etc/apt/sources.list regexp='^#\s?deb(.+)http://(.+)/ubuntu(.+)$' replace='deb\1http://\2/ubuntu\3' backup=yes
- name: Ensure that Aptitude repositories are up to date
apt: update_cache=yes cache_valid_time={{ aptcachetime }}
- name: Install common packages
apt: pkg={{ item }} state=latest update_cache=yes cache_valid_time={{ aptcachetime }}
with_items:
- git
- make
- nano
- net-tools
- name: Upgrade installed packages
apt: upgrade=yes