Changeset - 01102bba3d35
[Not reviewed]
0 1 0
x - 21 months ago 2023-08-20 04:26:45
xbr@c3l.lu
feat: update batman-adv version to current gw1 + gw2
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
gateway/initial_gw_setup.yml
Show inline comments
 
---
 
# Defining the remote server where the package will be deployed
 
- hosts: test
 
  remote_user: root
 
  become: yes
 
  become_method: sudo
 
  vars:
 
#    domain: '{{ domain.name }}'
 
    batman: 2021.4
 
    batman: 2022.2
 
  tasks:
 

	
 
# edit sources.list
 
#    - name: add the correct dkms source 
 
#      blockinfile:
 
#        path: /etc/apt/sources.list
 
#        backup: yes
 
#        block: |
 
#          # backports
 
#          deb http://deb.debian.org/debian bullseye-backports main
 
# Installing the sudo, git, vim and python3 packadges on ther servers 
 
    - name: Install a list of packages
 
      apt:
 
        pkg:
 
        - git
 
        - bridge-utils
 
        - ntp
 
        - dnsmasq
 
        - iptables-persistent
 
        - openvpn
 
        - fastd
 
        - build-essential
 
        - pkg-config
 
        - checkinstall
 
        - libnl-3-dev
 
        - libnl-genl-3-dev
 
        - linux-headers-amd64 
 
        - dkms
 
        - lsb-release
 
        - ethtool
 
        - python3
 

	
 
# Updating all packages to their latest version
 
    - name: Update all packages to their latest version
 
      apt:
 
        name: "*"
 
        state: latest
 

	
 
# Reboot and reconnect
 
    - name: Reboot host and wait for it to restart
 
      reboot:
 
        msg: "Reboot initiated by Ansible"
 
        connect_timeout: 5
 
        reboot_timeout: 600
 
        pre_reboot_delay: 0
 
        post_reboot_delay: 30
 
        test_command: whoami
 

	
0 comments (0 inline, 0 general)