This commit is contained in:
aynic.os
2021-07-14 23:03:00 +01:00
parent 3ffea66ba8
commit b6f1b8d798
18 changed files with 99 additions and 30 deletions
+3 -8
View File
@@ -11,6 +11,7 @@
- name: files - copy binary files
with_items:
- /etc/init.d/myos
- /etc/init.d/zram
copy: src=../files/{{item}} dest={{item}} owner=root group=root mode=0755
become: yes
@@ -18,6 +19,7 @@
- name: files - systemd - copy files
when: ansible_service_mgr|lower == "systemd"
with_items:
- /etc/systemd/system/myos.service
- /etc/systemd/system/zram.service
copy: src=../files/{{item}} dest={{item}} owner=root group=root mode=0644
become: yes
@@ -25,15 +27,8 @@
- name: files - openrc - copy files
when: ansible_service_mgr|lower == "openrc"
with_items:
- /etc/init.d/myos-openrc
- /etc/init.d/zram-openrc
- /etc/local.d/ansible.start
copy: src=../files/{{item}} dest={{item}} owner=root group=root mode=0755
become: yes
- name: files - get remote binary files
with_items:
- https://raw.githubusercontent.com/dylanaraps/pfetch/master/pfetch
get_url: url={{item}} dest=/usr/local/bin owner=root group=root mode=0755
ignore_errors: true
become: yes
-13
View File
@@ -1,13 +0,0 @@
---
# file: tasks/git.yml
- name: git - clone repositories
with_items: "{{ hosts_git_repositories|default([]) }}"
git:
repo: "{{ item.repo }}"
dest: "{{ item.dest|default('/src') }}"
key_file: "{{ item.key_file|default('~/.ssh/id_rsa') }}"
version: "{{ item.version|default('HEAD') }}"
ignore_errors: true
become: yes
-3
View File
@@ -16,9 +16,6 @@
- import_tasks: files.yml
tags:
- files
- import_tasks: git.yml
tags:
- git
- import_tasks: groups.yml
tags:
- groups