blob: c9d5d07b9be2eba67d7cabd62e5a5c9a3463a7d0 (
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
|
- name: Put debian.list
become: true
copy:
src: files/debian.list
dest: "{{ vyos_install_root }}/etc/apt/sources.list.d/debian.list"
- name: apt-get update
become: true
command: chroot {{ vyos_install_root }} apt-get update
- name: Install cloud-init
become: true
command: chroot {{ vyos_install_root }} apt-get install -y cloud-init cloud-utils
- name: apt-get clean
become: true
command: chroot {{ vyos_install_root }} apt-get clean
- name: Delete debian.list
become: true
file:
path: "{{ vyos_install_root }}/etc/apt/sources.list.d/debian.list"
state: absent
- name: Create cfg.d dir
become: true
file:
path: "{{ vyos_install_root }}/etc/cloud/cloud.cfg.d/"
state: directory
mode: 0755
- name: Put datasource_list.cfg
become: true
copy:
src: "files/{{ vyos_platform | lower }}.cfg"
dest: "{{ vyos_install_root }}/etc/cloud/cloud.cfg.d/90_dpkg.cfg"
- name: run dpkg-reconfigure cloud-init
become: true
command: chroot {{ vyos_install_root }} dpkg-reconfigure -f noninteractive cloud-init
|