Removed duplicate files

This commit is contained in:
2023-11-20 22:31:53 +05:30
parent d49b0a2962
commit 1ed260f1cf
8 changed files with 0 additions and 100 deletions

View File

@@ -1,16 +0,0 @@
---
- hosts: all
become: true
vars_prompt:
- name: group_name
prompt: "Name of group to add user to"
private: no
- name: user_name
prompt: "Name of user to add to group"
private: no
tasks:
- name: Add user to group
user:
name: "{{ user_name }}"
groups: "{{ group_name }}"
append: yes

View File

@@ -1,13 +0,0 @@
---
- hosts: all
become: true
vars_prompt:
- name: package_name
prompt: "Enter the name of package to be installed"
private: no
tasks:
- name: Install a package
apt:
update_cache: true
name: "{{ package_name }}"
state: present

View File

@@ -1,6 +0,0 @@
---
- hosts: all
tasks:
- name: Prune docker images
community.docker.docker_prune:
images: true

View File

@@ -1,13 +0,0 @@
---
- hosts: all
become: true
vars_prompt:
- name: package_name
prompt: "Enter the name of package to be removed"
private: no
tasks:
- name: Remove a package
apt:
name: "{{ package_name }}"
state: absent
autoremove: true

View File

@@ -1,9 +0,0 @@
---
- hosts: all
vars_prompt:
- name: path
prompt: "Enter path to script"
private: no
tasks:
- name: Execute script
script: "{{ path }}"

View File

@@ -1,17 +0,0 @@
---
- hosts: all
become: true
vars_prompt:
- name: script
prompt: "Enter the script to be run"
private: no
tasks:
- name: Fetch script
ansible.builtin.uri:
url: "{{ script }}"
return_content: yes
register: sc
- name: Run script
ansible.builtin.shell:
cmd: bash -s
stdin: "{{ sc.content }}"

View File

@@ -1,16 +0,0 @@
---
- hosts: all
become: true
vars_prompt:
- name: service
prompt: "Name of service to be stopped and disabled"
private: no
tasks:
- name: Disable a service
systemd:
name: "{{ service }}"
enabled: no
- name: Stop a service
systemd:
name: "{{ service }}"
state: stopped

View File

@@ -1,10 +0,0 @@
---
- hosts: all
become: true
tasks:
- name: Update all packages
apt:
update_cache: yes
upgrade: yes