Code Update
This commit is contained in:
		
							
								
								
									
										23
									
								
								src/commands/infra.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								src/commands/infra.sh
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,23 @@
 | 
			
		||||
wx-infra(){
 | 
			
		||||
    wx-login
 | 
			
		||||
    wx-ssh-sign &> /dev/null
 | 
			
		||||
 | 
			
		||||
    echo "          >> Infra <<          "
 | 
			
		||||
    echo "------------------------------"
 | 
			
		||||
 | 
			
		||||
    case $USER in
 | 
			
		||||
        cwchristerw)
 | 
			
		||||
            if [[ -z $1 ]]
 | 
			
		||||
            then
 | 
			
		||||
                echo "Tag Required"
 | 
			
		||||
            else
 | 
			
		||||
                cd "/home/cwchristerw/Desktop/Work in Progress/Programming/warengroup/infra"
 | 
			
		||||
                ansible-playbook --vault-id warengroup@vault/warengroup playbooks.yml -t $1
 | 
			
		||||
                cd "$OLDPWD"
 | 
			
		||||
            fi
 | 
			
		||||
            ;;
 | 
			
		||||
        *)
 | 
			
		||||
            echo "User Unsupported"
 | 
			
		||||
            ;;
 | 
			
		||||
    esac
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user