summaryrefslogtreecommitdiff
path: root/config/hosts/master/roles/system/tasks/main.yml
blob: 92cb500114d90d8d56606bcff65ca024910abdcb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
# This role configures system and installs

- name: Update packages info
  apt:
    update_cache: yes
    force: yes

- name: Upgrade packages
  apt:
    upgrade: full
    force: yes

- name: Install tools
  apt: "name={{ item }} state=present force=yes"
  with_items:
    - wget
    - task-spooler
    - python-bs4
    - git

- name: Set http_proxy environment variable
  lineinfile:
    dest: /etc/environment
    state: present
    regexp: '^http_proxy'
    line: 'http_proxy="{{ proxy }}"'

- name: Set HTTP_PROXY environment variable
  lineinfile:
    dest: /etc/environment
    state: present
    regexp: '^HTTP_PROXY'
    line: 'HTTP_PROXY="{{ proxy }}"'