Skip to content

Commit 6b713a2

Browse files
authored
Merge pull request #2 from daizr/master
updates for apt
2 parents 63c26c8 + 972c3a3 commit 6b713a2

File tree

7 files changed

+15
-14
lines changed

7 files changed

+15
-14
lines changed

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ Sponsored by [BidMath](http://bidmath.com/)
1818
- { role: pedrocarmona.github-git-lfs }
1919
```
2020
21-
2221
## License
2322
2423
MIT / BSD

defaults/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
git_lfs_version: 1.1.0
2+
git_lfs_version: 1.4.4

meta/main.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
---
22
dependencies:
3-
- { role: geerlingguy.git }
4-
3+
- src: geerlingguy.git
54

65
galaxy_info:
76
author: pedrocarmona
87
company: BidMath
98
description: Git Large File Storage
109
license: "license (BSD, MIT)"
11-
min_ansible_version: 1.4
10+
min_ansible_version: 2.1
1211
platforms:
1312
- name: EL
1413
versions:

tasks/debian.yml

+9-6
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,22 @@
66
apt:
77
name: "{{ item }}"
88
state: latest
9-
update_cache: yes
109
with_items:
1110
- debian-archive-keyring
1211
- apt-transport-https
1312

1413
- name: Ensure repository configuration (Debian)
15-
template: >
16-
src=debian.github_git-lfs.list.j2
17-
dest=/etc/apt/sources.list.d/github_git-lfs.list
18-
owner=root group=root mode=0644
14+
apt_repository: >
15+
repo={{ item }}
16+
state=present
17+
filename=github_git-lfs
18+
update_cache=yes
19+
mode=0644
20+
with_items:
21+
- "deb https://packagecloud.io/github/git-lfs/{{ansible_distribution|lower}}/ {{ansible_distribution_release}} main"
22+
- "deb-src https://packagecloud.io/github/git-lfs/{{ansible_distribution|lower}}/ {{ansible_distribution_release}} main"
1923

2024
- name: Ensure github git-lfs is installed (Debian)
2125
apt:
2226
name=git-lfs={{ git_lfs_version }}
2327
state=present
24-
update_cache=yes

tasks/main.yml

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
- include: redhat.yml
33
when: ansible_os_family == 'RedHat'
4+
tags: ['git-lfs']
45

56
- include: debian.yml
67
when: ansible_os_family == 'Debian'
8+
tags: ['git-lfs']

templates/debian.github_git-lfs.list.j2

-2
This file was deleted.

tests/test-install-package.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
- hosts: localhost
3-
sudo: true
3+
become: true
44
vars:
55
user: deploy
66
group: deploy

0 commit comments

Comments
 (0)