Changeset - 3d5ec49f81f4
[Not reviewed]
0 1 0
x - 21 months ago 2023-08-15 02:26:43
xbr@c3l.lu
feat: copy hideme-down during gw setup
1 file changed with 8 insertions and 0 deletions:
0 comments (0 inline, 0 general)
gateway/initial_gw_setup.yml
Show inline comments
 
@@ -182,96 +182,104 @@
 
        src: /home/fflux/Infrastructure-Intern/scripts/fastd-blacklist.sh
 
        dest: /etc/fastd/fflux/fastd-blacklist.sh
 
        owner: root
 
        group: root
 
        mode: '0755'
 

	
 
# change fasts autostart to all
 
# copy default fastd default file to remote host 
 
    - name: Copy fastd config file with owner and permissions
 
      ansible.builtin.copy:
 
        src: /home/fflux/Infrastructure-Intern/server_config/fastd/fastd
 
        dest: /etc/default/fastd
 
        owner: root
 
        group: root
 
        mode: '0644'
 

	
 
# Remove client directory from openvpn
 
    - name: Remove client directory
 
      ansible.builtin.file:
 
        path: /etc/openvpn/client
 
        state: absent
 

	
 
# Remove server from openvpn
 
    - name: Remove server directory
 
      ansible.builtin.file:
 
        path: /etc/openvpn/server
 
        state: absent
 

	
 
# create hideme config
 
# copy the default hidme config to remote host 
 
    - name: Copy hideme config with owner and permissions
 
      ansible.builtin.copy:
 
        src: /home/fflux/Infrastructure-Intern/server_config/openvpn/hideme.conf
 
        dest: /etc/openvpn/hideme.conf
 
        owner: root
 
        group: root
 
        mode: '0644'
 

	
 
# create hideme-up script
 
# copy hideme-up script to remote host 
 
    - name: Copy hideme-up script with owner and permissions
 
      ansible.builtin.copy:
 
        src: /home/fflux/Infrastructure-Intern/scripts/hideme-up
 
        dest: /etc/openvpn/hideme-up
 
        owner: root
 
        group: root
 
        mode: '0755'
 

	
 
    - name: Copy hideme-down script with owner and permissions
 
      ansible.builtin.copy:
 
        src: /home/fflux/Infrastructure-Intern/scripts/hideme-down
 
        dest: /etc/openvpn/hideme-down
 
        owner: root
 
        group: root
 
        mode: '0755'
 

	
 
# create update resolv conf
 
# copy update-resolv.conf script to remote host 
 
    - name: Copy update-resolv.conf with owner and permissions
 
      ansible.builtin.copy:
 
        src: /home/fflux/Infrastructure-Intern/server_config/openvpn/update-resolv-conf
 
        dest: /etc/openvpn/update-resolv-conf
 
        owner: root
 
        group: root
 
        mode: '0755'
 

	
 
# Create for batman installation
 
    - name: Create directory for batman installation
 
      ansible.builtin.file:
 
        path: /usr/src/batman-adv-{{batman}}
 
        state: directory
 
        mode: '0755'
 

	
 
# Clone and check out batman repo
 
    - name: Clone and check out batman git repo
 
      ansible.builtin.git:
 
        repo: 'https://git.open-mesh.org/batman-adv.git'
 
        dest: /usr/src/batman-adv-{{batman}}
 
        version: v{{batman}}
 

	
 
# create dkms conf
 
# copy dkms conf to remote host 
 
    - name: Copy dkms.conf with owner and permissions
 
      ansible.builtin.copy:
 
        src: /home/fflux/Infrastructure-Intern/server_config/dkms/dkms.conf
 
        dest: /usr/src/batman-adv-{{batman}}
 
        owner: root
 
        group: root
 
        mode: '0644'
 

	
 
# create dkms install script
 
# copy dkms install script to remote host 
 
    - name: Copy dkms install script with owner and permissions
 
      ansible.builtin.copy:
 
        src: /home/fflux/Infrastructure-Intern/scripts/install_dkms.sh
 
        dest: /usr/local/bin
 
        owner: root
 
        group: root
 
        mode: '0744'
 

	
 
# create build batclt script
 
# copy build batctl script to remote host 
 
    - name: Copy build batctl script with owner and permissions
 
      ansible.builtin.copy:
0 comments (0 inline, 0 general)