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:
- name: Install sshpass and keychain to master device
tags: ssh-setup ssh-keygen config keychain sshpass master
package:
name:
- sshpass # for the first login into nodes, using password auth
- keychain # to load the private key when opening a terminal
state: present
run_once: True
become: true
\ No newline at end of file
- ansible.builtin.shell: whoami
register: iam
become: false
- debug:
var: iam.stdout
\ No newline at end of file
......@@ -32,8 +32,6 @@
sudo systemctl restart chrony
- name: Copy a new config gpsd device functionality
become: true
become_user: root
ansible.builtin.blockinfile:
dest: /boot/firmware/config.txt
block: |
......@@ -79,8 +77,8 @@
dest: /etc/chrony/chrony.conf
- name: transfer location finder
become: true
ansible.builtin.copy:
src: ../files/positionGetter.sh
dest: "/home/{{ ansible_ssh_user }}/positionGetter.sh"
mode: 0755
become: false
......@@ -3,8 +3,7 @@
- name: Clone and/or update sens repository
hosts: sniffers
become: true
become_user: root
become: false
tasks:
- name: Install git if necessary
ansible.builtin.shell: type git || sudo apt update && apt install git -y
......
......@@ -2,8 +2,7 @@
- name: Update the drivers for external adapters
hosts: sniffers
become: true
become_user: root
becomre: false
tasks:
- name: Install required packages
tags: sniffer-setup config nodes
......@@ -13,6 +12,8 @@
- git # to clone rtl8188 repo
- bc # required to compile the rtl8188 driver
update_cache: true
become: true
become_user: root
- name: Clone or update rtl8188eus repository if necessary
ansible.builtin.git:
......
......@@ -10,4 +10,3 @@
- ansible.builtin.copy:
src: "../files/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