Fix sambox.
This commit is contained in:
parent
a5e143b900
commit
ec66744db4
3 changed files with 37 additions and 35 deletions
|
@ -3,7 +3,6 @@
|
|||
## to the installer boot parameters to set hostname and domain.
|
||||
##
|
||||
|
||||
|
||||
- name: apply configuration to the sambox server
|
||||
hosts: all
|
||||
remote_user: ansible
|
||||
|
@ -26,14 +25,13 @@
|
|||
in_inventory: 192.168.0.[50:150]
|
||||
|
||||
di_dist: "{{ ansible_distribution_release }}"
|
||||
di_version: 10 # "{{ ansible_distribution_major_version }}"
|
||||
di_version: "{{ ansible_distribution_major_version }}"
|
||||
di_pkg: "debian-installer-{{ di_version }}-netboot-amd64"
|
||||
|
||||
ansible_user: ansible
|
||||
repo_dir: "/home/{{ ansible_user }}/debian-lan"
|
||||
ansible_python_interpreter: "/usr/bin/python3" ## needed for firewalld module
|
||||
|
||||
|
||||
vars_prompt:
|
||||
- name: "foo_pwd"
|
||||
prompt:
|
||||
|
@ -42,14 +40,12 @@
|
|||
just continue
|
||||
private: true
|
||||
|
||||
|
||||
pre_tasks:
|
||||
- name: validate if interfaces are available
|
||||
fail:
|
||||
msg: "Interfaces {{ ansible_interfaces }} found. WAN: '{{ if_wan }}', LAN: '{{ if_lan }}'. Two NICs needed."
|
||||
when: (if_lan not in ansible_interfaces) or (if_wan not in ansible_interfaces) or (if_lan == if_wan)
|
||||
|
||||
|
||||
roles:
|
||||
- up2date_debian
|
||||
- firewalld2if
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue