Last active
June 17, 2019 21:31
-
-
Save tsuchm/4cb3fd65927fe49ea77c256352a8915e to your computer and use it in GitHub Desktop.
Ansible playbook to install Git-LFS debian package
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For more detail, see https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | |
# Because Git-LFS repository use HTTPS, apt-transport-https package is necessary. | |
- name: Install apt-transport-https | |
apt: name=apt-transport-https state=present | |
- name: Add Git-LFS repository key | |
apt_key: | |
url: https://packagecloud.io/github/git-lfs/gpgkey | |
state: present | |
- name: Add Git-LFS repository source | |
get_url: | |
url: https://packagecloud.io/install/repositories/github/git-lfs/config_file.list?os=debian&dist={{ansible_distribution_major_version}}&source=script | |
dest: /etc/apt/sources.list.d/github_git-lfs.list | |
owner: root | |
group: root | |
mode: 0644 | |
- name: Add git-lfs package | |
apt: name=git-lfs state=latest update_cache=yes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment