Skip to content

Instantly share code, notes, and snippets.

@tsuchm
Last active June 17, 2019 21:31
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tsuchm/4cb3fd65927fe49ea77c256352a8915e to your computer and use it in GitHub Desktop.
Save tsuchm/4cb3fd65927fe49ea77c256352a8915e to your computer and use it in GitHub Desktop.
Ansible playbook to install Git-LFS debian package
# 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