v0.0.4
This commit is contained in:
@@ -4,12 +4,20 @@
|
||||
apt:
|
||||
name: debconf-utils
|
||||
state: present
|
||||
|
||||
- name: Check if /root/preseed.txt exists
|
||||
stat:
|
||||
path: /root/preseed.txt
|
||||
register: preseed_file
|
||||
|
||||
- name: Create preseed file
|
||||
command: echo "#_preseed_V1" > /root/preseed.txt
|
||||
when: not preseed_file.stat.exists
|
||||
|
||||
- name: Append installer's debconf database to the file
|
||||
command: debconf-get-selections --installer >> /root/preseed.txt
|
||||
when: not preseed_file.stat.exists
|
||||
|
||||
- name: Append debconf database to the file
|
||||
command: debconf-get-selections >> /root/preseed.txt
|
||||
when: not preseed_file.stat.exists
|
||||
|
||||
Reference in New Issue
Block a user