From 8d4ce263c26d1c0f07b0f0f98e04784e6137e98d Mon Sep 17 00:00:00 2001 From: pullyvan Date: Fri, 5 Mar 2021 13:07:51 +0100 Subject: [PATCH 1/3] add support for CentOS and Debian --- tasks/centos.yml | 40 ++++++++++++++++++++++++++++++++++++++++ tasks/debian.yml | 40 ++++++++++++++++++++++++++++++++++++++++ tasks/main.yml | 37 ++++--------------------------------- 3 files changed, 84 insertions(+), 33 deletions(-) create mode 100644 tasks/centos.yml create mode 100644 tasks/debian.yml diff --git a/tasks/centos.yml b/tasks/centos.yml new file mode 100644 index 0000000..59d4d33 --- /dev/null +++ b/tasks/centos.yml @@ -0,0 +1,40 @@ +--- +# tasks file for basics +- name: update & upgrade ubuntu + become: yes + package: + update_cache: yes + upgrade: yes + +- name: install basic tools via apt + become: yes + apt: + state: latest + pkg: + - git + - net-tools + - screen + - tmux + - gparted + - curl + - htop + - vim + - nmon + - tcsh + - firefox + - eom + - unzip + - make + - gcc + - tcsh + - zsh + - csh + - ash + - bsh + - fish + - cifs-utils + - byobu + - software-properties-common + - gnupg + - gnupg1 + - gnupg2 diff --git a/tasks/debian.yml b/tasks/debian.yml new file mode 100644 index 0000000..59d4d33 --- /dev/null +++ b/tasks/debian.yml @@ -0,0 +1,40 @@ +--- +# tasks file for basics +- name: update & upgrade ubuntu + become: yes + package: + update_cache: yes + upgrade: yes + +- name: install basic tools via apt + become: yes + apt: + state: latest + pkg: + - git + - net-tools + - screen + - tmux + - gparted + - curl + - htop + - vim + - nmon + - tcsh + - firefox + - eom + - unzip + - make + - gcc + - tcsh + - zsh + - csh + - ash + - bsh + - fish + - cifs-utils + - byobu + - software-properties-common + - gnupg + - gnupg1 + - gnupg2 diff --git a/tasks/main.yml b/tasks/main.yml index 5fe54ca..737b587 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,36 +1,7 @@ --- # tasks file for basics -- name: update & upgrade ubuntu - become: yes - package: - update_cache: yes - upgrade: yes +- include: debian.yml tags=debian + when: ansible_os_family == 'Debian' -- name: install basic tools via apt - become: yes - apt: - state: latest - pkg: - - git - - net-tools - - screen - - tmux - - gparted - - curl - - htop - - vim - - nmon - - tcsh - - firefox - - eom - - unzip - - make - - gcc - - tcsh - - zsh - - csh - - ash - - bsh - - fish - - cifs-utils - - byobu +- include: centos.yml tags=centos + when: ansible_distribution == "CentOS" \ No newline at end of file -- GitLab From 70b571b163778add48eea7ec15023b954b200625 Mon Sep 17 00:00:00 2001 From: pullyvan Date: Fri, 5 Mar 2021 13:08:02 +0100 Subject: [PATCH 2/3] add support for Debian --- tasks/debian.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tasks/debian.yml b/tasks/debian.yml index 59d4d33..17ae1f3 100644 --- a/tasks/debian.yml +++ b/tasks/debian.yml @@ -38,3 +38,6 @@ - gnupg - gnupg1 - gnupg2 +# - python3-boto +# - python3-boto3 +# - python3-botocore -- GitLab From 5b9e7bd5d5c6f42b1b8bd97160f2784f1753982d Mon Sep 17 00:00:00 2001 From: pullyvan Date: Fri, 5 Mar 2021 13:08:15 +0100 Subject: [PATCH 3/3] add support for CentOS --- tasks/centos.yml | 32 +++++++++++++++++--------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/tasks/centos.yml b/tasks/centos.yml index 59d4d33..852d688 100644 --- a/tasks/centos.yml +++ b/tasks/centos.yml @@ -1,16 +1,19 @@ --- # tasks file for basics -- name: update & upgrade ubuntu - become: yes - package: - update_cache: yes - upgrade: yes - -- name: install basic tools via apt - become: yes - apt: +- name: Upgrade all packages + yum: + name: '*' state: latest - pkg: + +- name: Install basic tools via yum + yum: + name: + - xauth + - vim + - gcc + - yum-utils + - kernel-devel + - epel-release - git - net-tools - screen @@ -29,12 +32,11 @@ - tcsh - zsh - csh - - ash - bsh - fish - cifs-utils - byobu - - software-properties-common - - gnupg - - gnupg1 - - gnupg2 + - python-boto.noarch + - python-boto3.noarch + state: present + -- GitLab