Skip to content
This repository has been archived by the owner on Jul 3, 2024. It is now read-only.

Commit

Permalink
Version 2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
marcinbojko committed Feb 20, 2021
1 parent 12c85f2 commit 025deaa
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 595 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog "linux_mint"

## Version 2.2.0 [2021-02-20]

* This version shares application config from 2.1.6 version but:
* [BREAKING_CHANGE] drops support for `Linux Mint 19`
* [BREAKING_CHANGE] introduces support for Ansible 2.10 as mandatory
* Galaxy modules
* ansible-galaxy collection install ansible.posix
* ansible-galaxy collection install community.general

## Version 2.1.6 [2021-02-20]

* [BREAKING_CHANGE] remove `kubeval` as obsolete
Expand Down
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

- [Ansible playbook for your DevOps/SysOps Linux Mint 19.x/20.x based workstation](#ansible-playbook-for-your-devopssysops-linux-mint-19x20x-based-workstation)
- [Prerequisites](#prerequisites)
- [Ansible 2.10 and higher reminder](#ansible-210-and-higher-reminder)
- [Assumptions](#assumptions)
- [In-place upgraded OS warning](#in-place-upgraded-os-warning)
- [Python2 removal](#python2-removal)
Expand Down Expand Up @@ -31,17 +32,25 @@

## Prerequisites

- installed `Linux Mint` 19, 19.1, 19.2, 19.3, 20.0 20.1 - all 64-bit, standard options with extra codecs (available as selection during install)
- installed `Linux Mint` 20.0 20.1 - all 64-bit, standard options with extra codecs (available as selection during install)
- for previous versions of Mint - last release supporting `Linux Mint 19` was 2.1.6
- access to Internet
- `openssh-server` installed and running
- `ansible` in version 2.9 or higher
- `ansible` in version 2.10 or higher
- `ansible-galaxy collection install ansible.posix`
- `ansible-galaxy collection install community.general`

```bash
sudo apt install openssh-server;sudo systemctl enable ssh && sudo systemctl start ssh
```

- PermitRootLogin in `/etc/ssh/sshd_config` if you're using root account

### Ansible 2.10 and higher reminder

- `ansible-galaxy collection install ansible.posix`
- `ansible-galaxy collection install community.general`

## Assumptions

- 20 GB free space on OS drive
Expand Down
25 changes: 6 additions & 19 deletions linux_mint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
# ansible version
- name: verify_ansible_meets_version_requirements
assert:
that: "ansible_version.full is version_compare('2.9', '>=')"
that: "ansible_version.full is version_compare('2.10', '>=')"
msg: >
"You must update Ansible to at least 2.9 to use this version of playbook"
"You must update Ansible to at least 2.10 to use this version of playbook"
tags:
- assert
# setup module - we need these facts
Expand Down Expand Up @@ -87,6 +87,7 @@
- "Bin Path to put files into : {{ bin_path }}"
- "Active user : {{ active_user|string }}"
- "Linux Mint major version : {{ ansible_distribution_major_version }}"
- "Ansible version : {{ ansible_version.full }}"
- name: wait_15_seconds
pause:
seconds: 15
Expand Down Expand Up @@ -360,21 +361,7 @@
when: install_deb
tags:
- packages
- name: remove_ansible_from_pip
pip:
name: ansible
state: absent
retries: "{{ retries_count }}"
delay: "{{ delay_time }}"
register: r_pip_ansible
until: r_pip_ansible is success
any_errors_fatal: false
ignore_errors: true
when: pip_executable is defined
tags:
- packages
- base
- python
- deb
- name: install_and_upgrade_pip_packages
pip:
name: "{{ item }}"
Expand All @@ -393,7 +380,7 @@
- base
- python
- name: install_flatpak_apps
flatpak:
community.general.flatpak:
name: "{{ item.name|string }}"
state: present
method: system
Expand Down Expand Up @@ -696,7 +683,7 @@
enabled: true
when: r_create_fstrim_override.changed
- name: sysctl_changes
sysctl:
ansible.posix.sysctl:
name: "{{ item.name|string }}"
value: "{{ item.value|string }}"
state: "{{ item.state|string }}"
Expand Down
Loading

0 comments on commit 025deaa

Please sign in to comment.