AniNIX/Wiki#21 -- effecting renames for policy
This commit is contained in:
		
							
								
								
									
										39
									
								
								roles/ShadowArch/tasks/shadowarch.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										39
									
								
								roles/ShadowArch/tasks/shadowarch.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,39 @@
 | 
			
		||||
---
 | 
			
		||||
  - name: Install ShadowArch (ArchLinux)
 | 
			
		||||
    vars:
 | 
			
		||||
      ansible_become_password: "{{ passwords[inventory_hostname] }}"
 | 
			
		||||
    become: yes
 | 
			
		||||
    pacman:
 | 
			
		||||
      name: ShadowArch
 | 
			
		||||
      state: present
 | 
			
		||||
      update_cache: yes
 | 
			
		||||
    when: ansible_os_family == "Archlinux"
 | 
			
		||||
 | 
			
		||||
  - name: Set up AniNIX-specific repository location (Other)
 | 
			
		||||
    when: ansible_os_family != "Archlinux"
 | 
			
		||||
    vars:
 | 
			
		||||
      ansible_become_password: "{{ passwords[inventory_hostname] }}"
 | 
			
		||||
    become: yes
 | 
			
		||||
    file:
 | 
			
		||||
      path: /opt/aninix
 | 
			
		||||
      state: directory
 | 
			
		||||
 | 
			
		||||
  - name: Download ShadowArch (Other)
 | 
			
		||||
    vars:
 | 
			
		||||
      ansible_become_password: "{{ passwords[inventory_hostname] }}"
 | 
			
		||||
    become: yes
 | 
			
		||||
    ignore_errors: yes
 | 
			
		||||
    git:
 | 
			
		||||
      repo: 'https://foundation.aninix.net/AniNIX/ShadowArch'
 | 
			
		||||
      dest: '/opt/aninix/ShadowArch'
 | 
			
		||||
      update: yes
 | 
			
		||||
    when: ansible_os_family != "Archlinux"
 | 
			
		||||
 | 
			
		||||
  - name: Install ShadowArch (Other)
 | 
			
		||||
    vars:
 | 
			
		||||
      ansible_become_password: "{{ passwords[inventory_hostname] }}"
 | 
			
		||||
    become: yes
 | 
			
		||||
    command:
 | 
			
		||||
      chdir: '/opt/aninix/ShadowArch'
 | 
			
		||||
      cmd: '/bin/bash -c "make install"'
 | 
			
		||||
    when: ansible_os_family != "Archlinux"
 | 
			
		||||
		Reference in New Issue
	
	Block a user