diff --git a/tasks/centos.yml b/tasks/centos.yml new file mode 100644 index 0000000000000000000000000000000000000000..852d6884e92923ef25e059526d8b8d979f23a466 --- /dev/null +++ b/tasks/centos.yml @@ -0,0 +1,42 @@ +--- +# tasks file for basics +- name: Upgrade all packages + yum: + name: '*' + state: latest + +- name: Install basic tools via yum + yum: + name: + - xauth + - vim + - gcc + - yum-utils + - kernel-devel + - epel-release + - git + - net-tools + - screen + - tmux + - gparted + - curl + - htop + - vim + - nmon + - tcsh + - firefox + - eom + - unzip + - make + - gcc + - tcsh + - zsh + - csh + - bsh + - fish + - cifs-utils + - byobu + - python-boto.noarch + - python-boto3.noarch + state: present + diff --git a/tasks/debian.yml b/tasks/debian.yml new file mode 100644 index 0000000000000000000000000000000000000000..17ae1f3d26612cd1db9282a9396b31fa8ceb8c31 --- /dev/null +++ b/tasks/debian.yml @@ -0,0 +1,43 @@ +--- +# 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 +# - python3-boto +# - python3-boto3 +# - python3-botocore diff --git a/tasks/main.yml b/tasks/main.yml index 463823d273c290c99f271449872dde18d9c2f450..737b58747e2620e5a68547f22b957fa92f4d5a99 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,14 +1,7 @@ --- -- name: Update all system packages to their latest version with apt - apt: - name: "*" - update_cache: yes - state: latest +# tasks file for basics +- include: debian.yml tags=debian when: ansible_os_family == 'Debian' -- name: Install basic packages with apt - apt: - name: "{{ packages }}" - update_cache: true - state: present - when: ansible_os_family == 'Debian' +- include: centos.yml tags=centos + when: ansible_distribution == "CentOS" \ No newline at end of file