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

Commit bca2a87

Browse files
committed
Version 2.7.0
1 parent d3bb301 commit bca2a87

File tree

9 files changed

+163
-878
lines changed

9 files changed

+163
-878
lines changed

CHANGELOG.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,55 @@
11
# Changelog "linux_mint"
22

3+
## Version 2.7.0 [2023-07-09]
4+
5+
* [BREAKING_CHANGE] - removal of Linux Mint 20.x support - last version supporting it will be 2.6.1
6+
* [BREAKING_CHANGE] - Forticlient Ubuntu repo's key expired - temporarily commented out
7+
* [APPLICATION] removal `teams` package
8+
* [REPOSITORY] removal `ms-teams` repository
9+
* [APPLICATION] upgraded `amass` to version 3.23.3
10+
* [APPLICATION] upgraded `angryip` to version 3.9.1
11+
* [APPLICATION] upgraded `argocd` to version 2.7.7
12+
* [APPLICATION] upgraded `balena-etcher` to version 1.18.8
13+
* [APPLICATION] upgraded `datree` to version 1.9.10
14+
* [APPlICATION] upgraded `dive` to version 0.11.0
15+
* [APPLICATION] upgraded `docker-compose` to version 2.19.1
16+
* [APPLICATION] upgraded `dockle` to version 0.4.11
17+
* [APPLICATION] upgraded `gping` to version 1.13.1
18+
* [APPLICATION] upgraded `helm` to version 3.12.1
19+
* [APPLICATION] upgraded `imager` to version 1.7.5
20+
* [APPLICATION] upgraded `k3d` to version 5.5.1
21+
* [APPLICATION] upgraded `k3s` to version 1.25.11
22+
* [APPLICATION] upgraded `k3sup` to version 0.12.13
23+
* [APPLICATION] upgraded `k9s` to version 0.27.4
24+
* [APPLICATION] upgraded `kube-bench` to version 0.6.15
25+
* [APPLICATION] upgraded `kubeconform` to version 0.6.2
26+
* [APPLICATION] upgraded `kubent` to version nightly-0.7.0-14-gb3e2b3f
27+
* [APPLICATION] upgraded `kubestr` to version 0.4.37
28+
* [APPLICATION] upgraded `kustomize` to version 5.1.0
29+
* [APPLICATION] upgraded `minikube` to version 1.30.1
30+
* [APPLICATION] upgraded `nerdctl` to version 1.4.0
31+
* [APPLICATION] upgraded `packer` to version 1.9.1
32+
* [APPLICATION] upgraded `polaris` to version 8.3.0
33+
* [APPLICATION] upgraded `rambox` to version 2.1.4
34+
* [APPLICATION] upgraded `rke` to version 1.4.7
35+
* [APPLICATION] upgraded `steampipe` to version 0.20.8
36+
* [APPLICATION] upgraded `syft` to version 0.84.1
37+
* [APPLICATION] upgraded `tabby` to version 1.0.197
38+
* [APPLICATION] upgraded `terraform` to version 1.5.2
39+
* [APPLICATION] upgraded `tflint` to version 0.47.0
40+
* [APPLICATION] upgraded `vagrant` to version 2.3.8
41+
* [APPLICATION] upgraded `vault` to version 1.14.0
42+
* [APPLICATION] upgraded `zoom` to version 5.15.2.4260
43+
* [VSCODE] added `ecmel.vscode-html-css`
44+
* [VSCODE] added `github.vscode-github-actions`
45+
* [VSCODE] added `ms-dotnettools.vscode-dotnet-runtime`
46+
* [VSCODE] added `ms-python.isort`
47+
* [VSCODE] added `ms-python.vscode-pylance`
48+
* [VSCODE] added `ms-vscode-remote.remote-server`
49+
* [VSCODE] added `ms-vscode.remote-explorer`
50+
* [VSCODE] added `redhat.java`
51+
* [VSCODE] added `Tim-Koehler.helm-intellisense`
52+
353
## Version 2.6.1 [2023-02-05]
454

555
* [VSCODE] removed obsoleted extensions `ms-vsliveshare.vsliveshare-audio` - [https://github.com/MicrosoftDocs/live-share/issues/4826](https://github.com/MicrosoftDocs/live-share/issues/4826)

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# Ansible playbook for your DevOps/SysOps Linux Mint 20.x/21.x based workstation
1+
# Ansible playbook for your DevOps/SysOps Linux Mint 21.x based workstation
22

33
[![Super-Linter](https://github.com/marcinbojko/linux_mint/actions/workflows/01_lint_me.yml/badge.svg)](https://github.com/marcinbojko/linux_mint/actions/workflows/01_lint_me.yml)
44
[![Ansible Lint](https://github.com/marcinbojko/linux_mint/actions/workflows/02_ansible_lint.yml/badge.svg)](https://github.com/marcinbojko/linux_mint/actions/workflows/02_ansible_lint.yml)
55
<!-- TOC -->
66

7-
- [Ansible playbook for your DevOps/SysOps Linux Mint 20.x/21.x based workstation](#ansible-playbook-for-your-devopssysops-linux-mint-20x21x-based-workstation)
7+
- [Ansible playbook for your DevOps/SysOps Linux Mint 21.x based workstation](#ansible-playbook-for-your-devopssysops-linux-mint-21x-based-workstation)
88
- [Prerequisites](#prerequisites)
99
- [Ansible 2.10 and higher reminder](#ansible-210-and-higher-reminder)
1010
- [Assumptions](#assumptions)
@@ -36,8 +36,8 @@
3636

3737
## Prerequisites
3838

39-
- installed `Linux Mint` 20.0/20.1/20.2/20.3/21.0/21.1 - all 64-bit, standard options with extra codecs (available as selection during install)
40-
- for previous versions of Mint - last release supporting `Linux Mint 19` was 2.1.6
39+
- installed `Linux Mint` 21.0/21.1 - all 64-bit, standard options with extra codecs (available as selection during install)
40+
- for previous versions of Mint (20.x) - last release supporting `Linux Mint 20` was 2.6.1
4141
- access to internet
4242
- `openssh-server` installed and running
4343
- `ansible` in version 2.10 or higher
@@ -224,7 +224,6 @@ custom_packages:
224224
- `skype` - Microsoft's communicator
225225
- `spotify` - Music streaming service
226226
- `sublime text 3` - Alternative text editor
227-
- `teams` - Microsoft Teams Linux Client
228227
- `trivy` - Container security scanner
229228
- `veeam` - Veeam Agent for Linux
230229
- `veracrypt` - Device encryption utility
@@ -303,7 +302,6 @@ custom_packages:
303302
| GIMP | GNU Image Manipulation Program | [https://www.gimp.org/](https://www.gimp.org/)|
304303
| Insync|Googledrive & Onedrive linux client|[https://www.insynchq.com/](https://www.insynchq.com/)|
305304
| Kodi | Open Source Home Theater| [https://kodi.tv/](https://kodi.tv/)|
306-
| Microsoft Teams | IM |[https://www.microsoft.com/en/microsoft-365?omkt=en-US&rtc=1](https://www.microsoft.com/en/microsoft-365?omkt=en-US&rtc=1)|
307305
| Neofetch |A command-line system information tool written in bash 3.2+| [https://github.com/dylanaraps/neofetch](https://github.com/dylanaraps/neofetch)|
308306
| PDK/Puppet Agent | Puppet Development Kit | [https://puppet.com/docs/pdk/1.x/pdk.html](https://puppet.com/docs/pdk/1.x/pdk.html)|
309307
| Pinta | Drawing/Image Editing| [https://pinta-project.com/pintaproject/pinta/](https://pinta-project.com/pintaproject/pinta/)|

linux_mint.yaml

Lines changed: 43 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Prepares LinuxMint19/20 desktop.
22
# start from preparing ssh:
33
# sudo apt install openssh-server ntp;systemctl enable ssh && systemctl start ssh
4-
#
4+
# kind: playbook
55
- name: prepare_mint_desktop
66
hosts: all
77
vars:
@@ -24,7 +24,7 @@
2424
reboot_required: false # force reboot even if apt upgrade won't change anything
2525
unpack_folder: /tmp/linux_mint # folder to which we're going to unpack and download files
2626
become: true
27-
gather_facts: no
27+
gather_facts: false
2828
pre_tasks:
2929
# ansible version
3030
- name: verify_ansible_meets_version_requirements
@@ -48,7 +48,7 @@
4848
- name: assert_root_partition_is_15_GB_of_free_space
4949
ansible.builtin.assert: { that: item.size_available > 13622320128 } # 20 GB free
5050
loop: '{{ ansible_mounts }}'
51-
ignore_errors: no
51+
ignore_errors: false
5252
when: item.mount == '/'
5353
tags:
5454
- assert
@@ -187,6 +187,7 @@
187187
- keys
188188
- base
189189
- obsolete
190+
become: true
190191
# remove obsolete packages
191192
- name: remove_obsolete_apt_packages
192193
ansible.builtin.apt:
@@ -350,7 +351,11 @@
350351
- name: reconfigure_all_waiting_packages
351352
ansible.builtin.shell: dpkg --configure -a
352353
any_errors_fatal: false
353-
ignore_errors: true
354+
register: r_reconfigure_all_waiting_packages
355+
retries: "{{ retries_count }}"
356+
delay: "{{ delay_time }}"
357+
until: r_reconfigure_all_waiting_packages is success
358+
failed_when: false
354359
changed_when: false
355360
tags:
356361
- packages
@@ -364,6 +369,7 @@
364369
delay: "{{ delay_time }}"
365370
until: r_apt_clean is success
366371
when: r_apt_initial_refresh.failed
372+
changed_when: r_apt_clean.rc != 0
367373
tags:
368374
- packages
369375
- base
@@ -484,7 +490,7 @@
484490
delay: "{{ delay_time }}"
485491
register: r_update_flatpak
486492
until: r_update_flatpak is success
487-
any_errors_fatal: false
493+
changed_when: r_update_flatpak.rc != 0
488494
ignore_errors: true
489495
when: install_flatpak
490496
tags:
@@ -587,15 +593,23 @@
587593
- apps
588594
- name: refresh_desktop_database
589595
ansible.builtin.shell: update-desktop-database
590-
any_errors_fatal: false
596+
register: r_refresh_desktop_database
597+
until: r_refresh_desktop_database is success
598+
retries: "{{ retries_count }}"
599+
delay: "{{ delay_time }}"
600+
failed_when: r_refresh_desktop_database.rc != 0
591601
ignore_errors: true
592-
changed_when:
602+
changed_when: false
593603
tags:
594604
- base
595605
- downloads
596606
- apps
597607
# Start user-related modification block
598608
- name: user_modifications_block
609+
tags:
610+
- base
611+
- user
612+
- zsh
599613
block:
600614
- name: create_or_check_users_groups
601615
ansible.builtin.user:
@@ -667,12 +681,11 @@
667681
- base
668682
- user
669683
- yubico
670-
tags:
671-
- base
672-
- user
673-
- zsh
674-
# start ansible block
684+
# start ansible block
675685
- name: start ansible block
686+
tags:
687+
- ansible
688+
when: config_ansible
676689
block:
677690
- name: check_if_ansible_cfg_exists
678691
ansible.builtin.stat:
@@ -700,9 +713,6 @@
700713
register: r_change_ansible_options
701714
until: r_change_ansible_options is success
702715
when: ansible_exists
703-
when: config_ansible
704-
tags:
705-
- ansible
706716
# start steampipe plugins block
707717
- name: install_steampipe_plugins_block
708718
block:
@@ -731,13 +741,19 @@
731741
- always
732742
# start vscode extensions block
733743
- name: install_vscode_extensions
744+
tags:
745+
- optional
746+
- user
747+
- vscode
748+
- eztensions
749+
when: install_vscode_extensions
734750
block:
735751
- name: remove_obsolete_extensions
736752
ansible.builtin.shell: "code --uninstall-extension {{ item }} | true"
737753
any_errors_fatal: false
738754
ignore_errors: true
739755
loop: "{{ vscode_obsolete }}"
740-
become: yes
756+
become: true
741757
become_user: "{{ active_user }}"
742758
register: r_remove_obsolete_extensions
743759
changed_when: "'was successfully uninstalled!' in r_remove_obsolete_extensions.stdout"
@@ -747,7 +763,7 @@
747763
any_errors_fatal: false
748764
ignore_errors: true
749765
changed_when: "r_dpkg_query_vscode.stdout != 'Status: install ok installed'"
750-
become: yes
766+
become: true
751767
become_user: "{{ active_user }}"
752768
- name: install_missing_extensions
753769
ansible.builtin.shell: if [ ! $(code --list-extensions | grep {{ item }}) ]; then code --install-extension {{ item }} --force; fi
@@ -756,19 +772,17 @@
756772
retries: "{{ retries_count }}"
757773
delay: "{{ delay_time }}"
758774
until: r_install_extension is success
759-
become: yes
775+
become: true
760776
become_user: "{{ active_user }}"
761777
changed_when: r_install_extension.stdout | length > 0
762778
when: r_dpkg_query_vscode.rc == 0
763779
any_errors_fatal: false
764780
ignore_errors: true
765-
tags:
766-
- optional
767-
- user
768-
- vscode
769-
when: install_vscode_extensions
770781
# Start OS related block
771782
- name: start_os_tweaks
783+
tags:
784+
- user
785+
- base
772786
block:
773787
# OS related tweaks and finetuning
774788
- name: set_timezone
@@ -798,7 +812,10 @@
798812
line: 'hosts: files dns'
799813
backrefs: yes
800814
any_errors_fatal: false
801-
ignore_errors: true
815+
register: r_nsswitch_config
816+
retries: "{{ retries_count }}"
817+
delay: "{{ delay_time }}"
818+
until: r_nsswitch_config is success
802819
- name: restart_avahi_after_changes
803820
ansible.builtin.systemd:
804821
name: avahi-daemon
@@ -885,7 +902,7 @@
885902
when: config_dconf and "absent" in item.state
886903
any_errors_fatal: false
887904
ignore_errors: true
888-
become: yes
905+
become: true
889906
become_user: "{{ active_user }}"
890907
tags:
891908
- dconf
@@ -900,14 +917,10 @@
900917
delay: "{{ delay_time }}"
901918
until: r_dconf_values is success
902919
when: config_dconf and "present" in item.state
903-
become: yes
920+
become: true
904921
become_user: "{{ active_user }}"
905922
tags:
906923
- dconf
907-
# Reboot
908-
tags:
909-
- user
910-
- base
911924
- name: update_all_packages
912925
ansible.builtin.apt:
913926
upgrade: "yes"

0 commit comments

Comments
 (0)