Playbooks to install packages for work
You just need ansible installed. You can use For new systems section or ansible documentation to install it.
First, you need to create a main file. This file will have all playbooks that you
want to run. You can use this file main.yml.example. There we have
all playbooks in this repository. Then, just remove the ones you don't want.
To run use ansible-playbook main.yml -e ansible_become_password=<YOUR_ROOT_PASSWORD>
.
Playbooks documentation:
For default debian doesn't include your user in sudoers group. To include, first login as root. Then type sudo usermod -aG sudo <username>
.
On Fedora, it is the wheel group the user has to be added to, as this group has full admin privileges. You can run sudo usermod -aG wheel <username>
. If this doesn't work, you may have to edit the /etc/sudoers
file to uncomment the line with the group name:
...
%wheel ALL=(ALL) ALL
...
You will need to logout and back in for changes to take effect.
If your instalation is old, you can just update the repositories to get new version of the packages. For new versions edit /etc/apt/sources.list
with:
deb http://deb.debian.org/debian/ testing main non-free contrib
deb-src http://deb.debian.org/debian/ testing main non-free contrib
deb http://security.debian.org/debian-security stable/updates main contrib non-free
deb-src http://security.debian.org/debian-security stable/updates main contrib non-free
# stable-updates, previously known as 'volatile'
deb http://deb.debian.org/debian/ stable-updates main contrib non-free
deb-src http://deb.debian.org/debian/ stable-updates main contrib non-free
To install git use sudo apt install git-all
Install ansible under python3. More information look here.
sudo pip3 install ansible