Skip to content

Latest commit

 

History

History
79 lines (52 loc) · 1.73 KB

File metadata and controls

79 lines (52 loc) · 1.73 KB

Ansible Install Linux

This repository contains a list of packages for Debian. It only contains a long list of packages for some GNU/Linux distributions.

Pre-Requisites

First we must manually execute the following commands on the computer where the installation will take place:

$ su -c "vim.tiny /etc/group"       # Add user name in sudo group: "sudo:x:27:user_name"
$ su -c "systemctl enable --now sshd.service"

Then we must copy a public SSH key on the computer where the installations will be executed:

$ ssh-copy-id -o PubkeyAuthentication=no -i ~/.ssh/demo-ssh.pub user_name@ip_address_or_localhost

This ansible poroject is for automatic install on post-installation for Debian Operating System.

Ansible Config Files

The project have three playbooks:

  • debian-base.yml
  • debian-desktop.yml
  • debian-security.yml
  • debian-xfce4.yml

Commands

First we are located on the route:

$ cd debian-os

Execution order:

  1. debian-base.yml:
$ ansible-playbook debian-base.yml -i inventory/inventory.yml \
--ask-become-pass
  1. debian-desktop.yml:
$ ansible-playbook debian-desktop.yml -i inventory/inventory.yml
  1. debian-security.yml:
$ ansible-playbook debian-security.yml -i inventory/inventory.yml
  1. debian-xfce4.yml:
$ ansible-playbook debian-xfce4.yml -i inventory/inventory.yml

Example Commands

  • Execute ansible playbook commands as sudo (--ask-become-pass or -k):
$ ansible-playbook debian-base.yml -i inventory.yml -k
  • Execute ansible playbook with reference python version:
$ ansible-playbook debian-security.yml -i inventory.yml \
-e "ansible_python_interpreter=/usr/bin/python3" --ask-become-pass