role separation

This commit is contained in:
Warezjoe
2024-08-08 09:39:04 +02:00
parent fca0d8655b
commit 8bd24c852f
192 changed files with 113 additions and 3884 deletions

View File

@@ -1,29 +0,0 @@
---
language: python
python: "2.7"
# Use the new container infrastructure
sudo: false
# Install ansible
addons:
apt:
packages:
- python-pip
install:
# Install ansible
- pip install ansible
# Check ansible version
- ansible --version
# Create ansible.cfg with correct roles_path
- printf '[defaults]\nroles_path=../' >ansible.cfg
script:
# Basic role syntax check
- ansible-playbook tests/test.yml -i tests/inventory --syntax-check
notifications:
webhooks: https://galaxy.ansible.com/api/v1/notifications/

View File

@@ -1,2 +0,0 @@
---
# defaults file for tools_for_command_line

View File

@@ -1,2 +0,0 @@
---
# handlers file for tools_for_command_line

View File

@@ -1,40 +0,0 @@
---
- name: Administration
become: true
ansible.builtin.package:
name:
- htop
- mc
- nano
- net-tools
- ncdu
- nmap
- telnet
- gpg
- openssh-server
- neofetch
- sudo
- powertop
- rsync
- iotop
- screen
- python3
- python3-pip
- mycli
state: present
- name: Wireguard deb
become: true
ansible.builtin.package:
name:
- wireguard
state: present
when: ansible_os_family == 'Debian'
- name: Wireguard other
become: true
ansible.builtin.package:
name:
- wireguard-tools
state: present
when: ansible_os_family != 'Debian'

View File

@@ -1,5 +0,0 @@
---
# tasks file for tools_for_command_line
- name: Critical system
ansible.builtin.include_tasks:
administration.yml

View File

@@ -1,2 +0,0 @@
localhost

View File

@@ -1,5 +0,0 @@
---
- hosts: localhost
remote_user: root
roles:
- tools_for_command_line

View File

@@ -1,2 +0,0 @@
---
# vars file for tools_for_command_line