Skip to content

Latest commit

 

History

History
66 lines (46 loc) · 1.45 KB

File metadata and controls

66 lines (46 loc) · 1.45 KB

Ansible Install Linux

This repository contains a list of packages for Fedora, Debian, and Ubuntu distributions. 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:

$ sudo apt update
$ sudo apt install -y openssh-server
$ sudo 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 Ubuntu Operating System.

Config Files and replace values

The project have three playbooks:

  • ubuntu-base.yml
  • ubuntu-desktop.yml
  • ubuntu-devops.yml

Commands

First we are located on the route:

$ cd ubuntu-os

Execution order:

  1. ubuntu-base.yml:
$ ansible-playbook ubuntu-base.yml \
--ask-become-pass \
-i inventory/inventory.yml \
-e "ansible_python_interpreter=/usr/bin/python3"
  1. ubuntu-desktop.yml:
$ ansible-playbook ubuntu-desktop.yml \
--ask-become-pass \
-i inventory/inventory.yml \
-e "ansible_python_interpreter=/usr/bin/python3"
  1. ubuntu-devops.yml:
$ ansible-playbook ubuntu-devops.yml \
--ask-become-pass \
-i inventory/inventory.yml \
-e "ansible_python_interpreter=/usr/bin/python3"