Updating roles
This commit is contained in:
		@@ -1,12 +1,12 @@
 | 
			
		||||
    - name: Check /var free percentage
 | 
			
		||||
      command: /bin/bash -c "df -m /var | tail -n 1 | awk '{ print $5; }' | sed 's/%//' "
 | 
			
		||||
      command: /bin/bash -c "df -m /var | tail -n 1 | awk '{ print \$5; }' | sed 's/%//'"
 | 
			
		||||
      become: no
 | 
			
		||||
      register: df_output
 | 
			
		||||
 | 
			
		||||
    - name: Verify /var space
 | 
			
		||||
      assert:
 | 
			
		||||
        that:
 | 
			
		||||
          - 90 > {{ df_output.stdout }}
 | 
			
		||||
          - 90 > df_output.stdout|int
 | 
			
		||||
        fail_msg: "Not enough free space"
 | 
			
		||||
 | 
			
		||||
    - name: Update Archlinux Keyring
 | 
			
		||||
@@ -31,4 +31,3 @@
 | 
			
		||||
      when: '"linux" in updates.stdout or "kernel" in updates.stdout'
 | 
			
		||||
      reboot:
 | 
			
		||||
          reboot_timeout: 2
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user