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.
56 lines
1.4 KiB
56 lines
1.4 KiB
---
|
|
- 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:
|
|
name: "{{ item }}"
|
|
state: latest
|
|
update_cache: yes
|
|
cache_valid_time: "{{ aptcachetime }}"
|
|
loop: [ 'git', 'make', 'nano', 'net-tools']
|
|
|
|
- name: Upgrade installed packages
|
|
apt: upgrade=yes
|
|
|
|
- name: Create .gitignore_global
|
|
copy:
|
|
dest: /home/fedy95/.gitignore_global
|
|
content: |
|
|
.idea
|
|
become: yes
|
|
become_user: fedy95
|
|
|
|
- name: Create global .gitconfig
|
|
copy:
|
|
dest: /home/fedy95/.gitconfig
|
|
content: |
|
|
[user]
|
|
name = fedy95
|
|
email = fedy95@protonmail.com
|
|
[core]
|
|
autocrlf = input
|
|
excludesfile = /home/fedy95/.gitignore_global
|
|
become: yes
|
|
become_user: fedy95
|
|
|
|
- name: Create Work dir
|
|
file:
|
|
path: /home/fedy95/Work
|
|
state: directory
|
|
become: yes
|
|
become_user: fedy95
|
|
...
|