From a9be3299fea67a6c7797b48f369f7e7a1153fad2 Mon Sep 17 00:00:00 2001 From: Ronggo Radityo Date: Tue, 25 Sep 2018 19:36:07 +0700 Subject: [PATCH] Pembuatan fungsi awal --- meta/main.yml | 52 +++++++------------------------ tasks/main.yml | 8 ++++- templates/etc/apt/sources.list.j2 | 10 ++++++ 3 files changed, 29 insertions(+), 41 deletions(-) create mode 100644 templates/etc/apt/sources.list.j2 diff --git a/meta/main.yml b/meta/main.yml index 7223799..4213d57 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -1,56 +1,28 @@ galaxy_info: - author: your name - description: your description - company: your company (optional) + author: Ronggo Radityo + description: Sources List for Debian using Kartolo Repo + company: Kota Magelang # If the issue tracker for your role is not on github, uncomment the # next line and provide a value # issue_tracker_url: http://example.com/issue/tracker - # Some suggested licenses: - # - BSD (default) - # - MIT - # - GPLv2 - # - GPLv3 - # - Apache - # - CC-BY - license: license (GPLv2, CC-BY, etc) + license: license (BSD, MIT) min_ansible_version: 1.2 - # If this a Container Enabled role, provide the minimum Ansible Container version. - # min_ansible_container_version: - - # Optionally specify the branch Galaxy will use when accessing the GitHub - # repo for this role. During role install, if no tags are available, - # Galaxy will use this branch. During import Galaxy will access files on - # this branch. If Travis integration is configured, only notifications for this - # branch will be accepted. Otherwise, in all cases, the repo's default branch - # (usually master) will be used. - #github_branch: - # # platforms is a list of platforms, and each platform has a name and a list of versions. # - # platforms: - # - name: Fedora - # versions: - # - all - # - 25 - # - name: SomePlatform - # versions: - # - all - # - 1.0 - # - 7 - # - 99.99 + platforms: + - name: Debian + versions: + - 8 + - 9 - galaxy_tags: [] - # List tags for your role here, one per line. A tag is a keyword that describes - # and categorizes the role. Users find roles by searching for tags. Be sure to - # remove the '[]' above, if you add tags to this list. - # - # NOTE: A tag is limited to a single word comprised of alphanumeric characters. - # Maximum 20 tags per role. + galaxy_tags: + - linux + - debian dependencies: [] # List your role dependencies here, one per line. Be sure to remove the '[]' above, diff --git a/tasks/main.yml b/tasks/main.yml index 4f73007..97c7a49 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,2 +1,8 @@ --- -# tasks file for roles/aptsrc \ No newline at end of file +# tasks file for roles/aptsrc +- name: Change apt/source.list to repo Indonesia Kartolo + template: + src: templates/etc/apt/sources.list.j2 + dest: /etc/apt/sources.list + mode: 0644 + when: ansible_os_family == 'Debian' \ No newline at end of file diff --git a/templates/etc/apt/sources.list.j2 b/templates/etc/apt/sources.list.j2 new file mode 100644 index 0000000..6445782 --- /dev/null +++ b/templates/etc/apt/sources.list.j2 @@ -0,0 +1,10 @@ +deb http://kartolo.sby.datautama.net.id/debian/ {{ release }} main non-free contrib +deb http://security.debian.org/debian-security {{ release }}/updates main contrib non-free +deb http://kartolo.sby.datautama.net.id/debian/ {{ release }}-updates main contrib non-free +deb http://kartolo.sby.datautama.net.id/debian/ {{ release }}-backports main contrib non-free + +# deb-src http://kartolo.sby.datautama.net.id/debian/ {{ release }} main non-free contrib +# deb-src http://security.debian.org/debian-security {{ release }}/updates main contrib non-free +# deb-src http://kartolo.sby.datautama.net.id/debian/ {{ release }}-updates main contrib non-free +# deb-src http://kartolo.sby.datautama.net.id/debian/ {{ release }}-backports main contrib non-free +