Skip to content

Commit

Permalink
Merge pull request #13 from clouddrove/SS-218
Browse files Browse the repository at this point in the history
git latest version install
  • Loading branch information
Nikita Dugar committed Mar 1, 2021
2 parents 1aa55cf + a830b66 commit a194032
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,26 @@
changed_when: false
when: ansible_facts['distribution'] == "Ubuntu"

- name: add git stable apt_repository
apt_repository:
repo: ppa:git-core/ppa
state: present
when: ansible_facts['distribution'] == "Ubuntu"

- name: install system packages and utils on ubuntu
apt:
pkg: ['ntp', 'openssl', 'git', 'telnet', 'figlet', 'git-core', 'htop', 'wget', 'python3-pip',
'zip', 'vim', 'vim-common', 'curl', 'rsyslog', 'libjson-xs-perl']
'zip', 'vim', 'vim-common', 'curl', 'rsyslog', 'libjson-xs-perl']
state: "{{ state }}"
update_cache: true
cache_valid_time: 5400
changed_when: false
when: ansible_facts['distribution'] == "Ubuntu"

- name: Install git latest version
shell: apt install git -y
when: ansible_facts['distribution'] == "Ubuntu"

- name: install epel-release on centos
command: yum install epel-release -y
when: (ansible_facts['distribution'] == "CentOS" and ansible_facts['distribution_major_version'] == "7")
Expand Down

0 comments on commit a194032

Please sign in to comment.