diff --git a/hosts_init.yml b/hosts_init.yml index feaf3be..aa81749 100755 --- a/hosts_init.yml +++ b/hosts_init.yml @@ -45,12 +45,8 @@ datacenter: ansible_python_interpreter: /share/ZFS530_DATA/.qpkg/QPython312/bin/python3 vms: hosts: - vm01.home.lan: - vm02.home.lan: - vm03.home.lan: - vm04.home.lan: - vm05.home.lan: - vm06.home.lan: + vm0[1:9].home.lan: + vm[10:27].home.lan: vars: ansible_python_interpreter: /usr/bin/python3 ansible_ssh_user: jd diff --git a/hosts_roles.yml b/hosts_roles.yml index 31b357f..939aeba 100755 --- a/hosts_roles.yml +++ b/hosts_roles.yml @@ -185,12 +185,8 @@ datacenter: ansible_ssh_private_key_file: ssh_key.pem vms: hosts: - vm01.home.lan: - vm02.home.lan: - vm03.home.lan: - vm04.home.lan: - vm05.home.lan: - vm06.home.lan: + vm0[1:9].home.lan: + vm[10:27].home.lan: vars: ansible_python_interpreter: /usr/bin/python3 ansible_ssh_user: jd diff --git a/playbooks/build_tasmota_v2.yml b/playbooks/build_tasmota_v2.yml index f3242d5..ff8367c 100755 --- a/playbooks/build_tasmota_v2.yml +++ b/playbooks/build_tasmota_v2.yml @@ -26,7 +26,6 @@ dest: /share/docker_data/docker-tasmota/Tasmota version: '{{ BRANCH }}' - # - name: Fetch tasmota # ansible.builtin.shell: # cmd: 'git fetch https://github.com/arendst/Tasmota.git {{ BRANCH }}' diff --git a/roles/docker/tasks/main.yml b/roles/docker/tasks/main.yml index 764c00a..f0db592 100755 --- a/roles/docker/tasks/main.yml +++ b/roles/docker/tasks/main.yml @@ -4,6 +4,13 @@ - name: Facts ansible.builtin.setup: + - name: Create apt proxy file + ansible.builtin.copy: + dest: /etc/apt/apt.conf.d/02proxy + content: | + Acquire::http::Proxy "http://192.168.77.101:3142"; + Acquire::https::Proxy "false"; + - name: Print arch ansible.builtin.debug: msg: "{{ ansible_architecture }}"