Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 11577ba6 authored by Autodistries's avatar Autodistries
Browse files

fix permissions for git clone and executable files

parent 7585545c
No related branches found
No related tags found
1 merge request!1Refactoring, new features
- hosts: localhost - hosts: sniffers
become: true
tasks: tasks:
- name: Install sshpass and keychain to master device - ansible.builtin.shell: whoami
tags: ssh-setup ssh-keygen config keychain sshpass master register: iam
package: become: false
name:
- sshpass # for the first login into nodes, using password auth - debug:
- keychain # to load the private key when opening a terminal var: iam.stdout
state: present \ No newline at end of file
run_once: True
become: true
\ No newline at end of file
...@@ -32,8 +32,6 @@ ...@@ -32,8 +32,6 @@
sudo systemctl restart chrony sudo systemctl restart chrony
- name: Copy a new config gpsd device functionality - name: Copy a new config gpsd device functionality
become: true
become_user: root
ansible.builtin.blockinfile: ansible.builtin.blockinfile:
dest: /boot/firmware/config.txt dest: /boot/firmware/config.txt
block: | block: |
...@@ -79,8 +77,8 @@ ...@@ -79,8 +77,8 @@
dest: /etc/chrony/chrony.conf dest: /etc/chrony/chrony.conf
- name: transfer location finder - name: transfer location finder
become: true
ansible.builtin.copy: ansible.builtin.copy:
src: ../files/positionGetter.sh src: ../files/positionGetter.sh
dest: "/home/{{ ansible_ssh_user }}/positionGetter.sh" dest: "/home/{{ ansible_ssh_user }}/positionGetter.sh"
mode: 0755 mode: 0755
become: false
...@@ -3,8 +3,7 @@ ...@@ -3,8 +3,7 @@
- name: Clone and/or update sens repository - name: Clone and/or update sens repository
hosts: sniffers hosts: sniffers
become: true become: false
become_user: root
tasks: tasks:
- name: Install git if necessary - name: Install git if necessary
ansible.builtin.shell: type git || sudo apt update && apt install git -y ansible.builtin.shell: type git || sudo apt update && apt install git -y
......
...@@ -2,8 +2,7 @@ ...@@ -2,8 +2,7 @@
- name: Update the drivers for external adapters - name: Update the drivers for external adapters
hosts: sniffers hosts: sniffers
become: true becomre: false
become_user: root
tasks: tasks:
- name: Install required packages - name: Install required packages
tags: sniffer-setup config nodes tags: sniffer-setup config nodes
...@@ -13,6 +12,8 @@ ...@@ -13,6 +12,8 @@
- git # to clone rtl8188 repo - git # to clone rtl8188 repo
- bc # required to compile the rtl8188 driver - bc # required to compile the rtl8188 driver
update_cache: true update_cache: true
become: true
become_user: root
- name: Clone or update rtl8188eus repository if necessary - name: Clone or update rtl8188eus repository if necessary
ansible.builtin.git: ansible.builtin.git:
......
...@@ -10,4 +10,3 @@ ...@@ -10,4 +10,3 @@
- ansible.builtin.copy: - ansible.builtin.copy:
src: "../files/99-unmanaged-devices.conf" src: "../files/99-unmanaged-devices.conf"
dest: /etc/NetworkManager/conf.d/99-unmanaged-devices.conf dest: /etc/NetworkManager/conf.d/99-unmanaged-devices.conf
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment