Signed-off-by: Noah Knegt <git@noahknegt.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#===================================================================================================
|
||||
# ===================================================================================================
|
||||
# ? ABOUT
|
||||
# @author : Noah Knegt
|
||||
# @email : personal@noahknegt.com
|
||||
@@ -6,19 +6,17 @@
|
||||
# @createdOn : 27-02-2023
|
||||
# @description : This file contains the tasks for the base role, this role will be applied to
|
||||
# all machines.
|
||||
#===================================================================================================
|
||||
# ===================================================================================================
|
||||
|
||||
---
|
||||
- include_vars: "{{ ansible_distribution }}.yml"
|
||||
|
||||
- block:
|
||||
# Setup the ansible user
|
||||
- include_tasks: users/ansible.yml
|
||||
- include_tasks: users/noahk.yml
|
||||
# Setup the ansible user
|
||||
- include_tasks: users/ansible.yml
|
||||
- include_tasks: users/noahk.yml
|
||||
|
||||
# Setup the sshd
|
||||
- include_tasks: system/openssh.yml
|
||||
|
||||
# Setup the repositories for Debian based systems
|
||||
- include_tasks: software/repositories.yml
|
||||
# Setup the sshd
|
||||
- include_tasks: system/openssh.yml
|
||||
|
||||
# Setup the repositories for Debian based systems
|
||||
- include_tasks: software/repositories.yml
|
||||
|
@@ -1,11 +1,11 @@
|
||||
#===================================================================================================
|
||||
# ===================================================================================================
|
||||
# ? ABOUT
|
||||
# @author : Noah Knegt
|
||||
# @email : personal@noahknegt.com
|
||||
# @repo : https://git.noahknegt.com/noah.knegt/ansible-automations
|
||||
# @createdOn : 27-02-2023
|
||||
# @description : This will contain all the default software for the machines.
|
||||
#===================================================================================================
|
||||
# ===================================================================================================
|
||||
|
||||
---
|
||||
- name: Install aptitude and software-properties-common
|
||||
|
@@ -1,11 +1,11 @@
|
||||
#===================================================================================================
|
||||
# ===================================================================================================
|
||||
# ? ABOUT
|
||||
# @author : Noah Knegt
|
||||
# @email : personal@noahknegt.com
|
||||
# @repo : https://git.noahknegt.com/noah.knegt/ansible-automations
|
||||
# @createdOn : 27-02-2023
|
||||
# @description : This will setup the ssh server on the machine.
|
||||
#===================================================================================================
|
||||
# ===================================================================================================
|
||||
|
||||
---
|
||||
- name: Install or update openssh
|
||||
|
@@ -1,11 +1,11 @@
|
||||
#===================================================================================================
|
||||
# ===================================================================================================
|
||||
# ? ABOUT
|
||||
# @author : Noah Knegt
|
||||
# @email : personal@noahknegt.com
|
||||
# @repo : https://git.noahknegt.com/noah.knegt/ansible-automations
|
||||
# @createdOn : 27-02-2023
|
||||
# @description : It contains the tasks to properly configure the ansible user.
|
||||
#===================================================================================================
|
||||
# ===================================================================================================
|
||||
|
||||
---
|
||||
- name: Add ansible group
|
||||
|
@@ -1,11 +1,11 @@
|
||||
#===================================================================================================
|
||||
# ===================================================================================================
|
||||
# ? ABOUT
|
||||
# @author : Noah Knegt
|
||||
# @email : personal@noahknegt.com
|
||||
# @repo : https://git.noahknegt.com/noah.knegt/ansible-automations
|
||||
# @createdOn : 27-02-2023
|
||||
# @description : This will setup the normal user on the machine.
|
||||
#===================================================================================================
|
||||
# ===================================================================================================
|
||||
|
||||
---
|
||||
- name: Create the group
|
||||
@@ -38,7 +38,7 @@
|
||||
group: noahk
|
||||
mode: 0700
|
||||
with_items:
|
||||
- { dir: /home/noahk/.ssh }
|
||||
- dir: /home/noahk/.ssh
|
||||
|
||||
- name: Copy ssh public key
|
||||
authorized_key:
|
||||
|
Reference in New Issue
Block a user