Swap to role based tasks #1
6
base.yml
6
base.yml
@@ -8,13 +8,15 @@
|
|||||||
#===================================================================================================
|
#===================================================================================================
|
||||||
|
|
||||||
---
|
---
|
||||||
- hosts: localhost
|
- hosts: ubuntu
|
||||||
|
remote_user: provision
|
||||||
become: true
|
become: true
|
||||||
roles:
|
roles:
|
||||||
- base
|
- base
|
||||||
|
|
||||||
# Clean up the system
|
# Clean up the system
|
||||||
- hosts: localhost
|
- hosts: ubuntu
|
||||||
|
remote_user: provision
|
||||||
become: true
|
become: true
|
||||||
tasks:
|
tasks:
|
||||||
- name: cleanup package cache (debian and ubuntu)
|
- name: cleanup package cache (debian and ubuntu)
|
||||||
|
@@ -1 +1 @@
|
|||||||
noahk ALL=(ALL) ALL:ALL
|
noahk ALL=(ALL:ALL) ALL
|
||||||
|
14
roles/base/vars/Ubuntu.yml
Normal file
14
roles/base/vars/Ubuntu.yml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
#===================================================================================================
|
||||||
|
# ? ABOUT
|
||||||
|
# @author : Noah Knegt
|
||||||
|
# @email : personal@noahknegt.com
|
||||||
|
# @repo : https://git.noahknegt.com/noah.knegt/ansible-automations
|
||||||
|
# @createdOn : 27-02-2023
|
||||||
|
# @description : This file contains all the variables for the base role, for the debian OS.
|
||||||
|
#===================================================================================================
|
||||||
|
|
||||||
|
---
|
||||||
|
sudo_group: sudo
|
||||||
|
openssh_service: ssh
|
||||||
|
openssh_package: openssh-server
|
||||||
|
ssh_port: 4422
|
Reference in New Issue
Block a user