Add releasedockerhub command to cron
[ci-management.git] / packer / provision / local-builder.yaml
1 ---
2 - import_playbook: ../common-packer/provision/baseline.yaml
3
4 - hosts: all
5   become_user: root
6   become_method: sudo
7
8   tasks:
9     - apt_repository:
10         repo: ppa:jonathonf/python-3.6
11         state: present
12       become: true
13       when: ansible_distribution == 'Ubuntu'
14
15     - apt_repository:
16         repo: ppa:deadsnakes/ppa
17         state: present
18       become: true
19       when: ansible_distribution == 'Ubuntu'
20
21     - name: Update and upgrade apt packages
22       apt:
23         upgrade: yes
24         update_cache: yes
25       become: true
26       when: ansible_distribution == 'Ubuntu'
27
28     - name: Install python-tox
29       pip:
30         name: tox
31         state: present
32       become: true
33
34     - name: Install Python 3.6 and packages
35       apt:
36         name:
37           - python3.6
38           - python3.6-dev
39           - python3.6-tk
40           - libssl-dev
41           - libmysqlclient-dev
42           - gcc
43       become: true
44       when: ansible_distribution == 'Ubuntu'
45
46     - name: Install Python 3.7
47       apt:
48         name:
49           - python3.7
50           - python3.7-dev
51           - python3.7-tk
52       become: true
53       when: ansible_distribution == 'Ubuntu'
54
55     - name: Install base packages
56       apt:
57         name:
58           - unzip
59           - xz-utils
60           - libxml-xpath-perl
61           - wget
62           - make
63           - npm
64           - sshuttle
65           - netcat
66           - libssl-dev
67           - libffi-dev
68       become: true
69       when: ansible_distribution == 'Ubuntu'
70
71     - name: Install autorelease support packages
72       apt:
73         name:
74           - xmlstarlet
75           - xvfb
76           - crudini
77           - maven
78           - python-ncclient
79       become: true
80       when: ansible_distribution == 'Ubuntu'