mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +00:00 
			
		
		
		
	update ansible check to 2.4.1
This commit is contained in:
		
							parent
							
								
									53224d0c05
								
							
						
					
					
						commit
						d315f14526
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
					@ -10,13 +10,13 @@ if [ $(which ansible-playbook) ]; then
 | 
				
			||||||
    VER=`ansible --version|head -n 1|cut -f 2 -d " "`
 | 
					    VER=`ansible --version|head -n 1|cut -f 2 -d " "`
 | 
				
			||||||
    GOOD_VER=`echo $VER | grep ^2.4`
 | 
					    GOOD_VER=`echo $VER | grep ^2.4`
 | 
				
			||||||
# 2.2.0.0 -> 2.4.0 patching was not applied -just upgrade via pip
 | 
					# 2.2.0.0 -> 2.4.0 patching was not applied -just upgrade via pip
 | 
				
			||||||
    if [ $VER = "2.2.0.0" ]; then
 | 
					    if [ $GOOD_VER = "" ]; then
 | 
				
			||||||
        echo "Ansible $VER installed updating to 2.4.0"
 | 
					        echo "Ansible $VER installed updating to 2.4.0"
 | 
				
			||||||
        pip install --upgrade ansible==2.4.0 --disable-pip-version-check
 | 
					        pip install --upgrade ansible==2.4.1 --disable-pip-version-check
 | 
				
			||||||
        exit 0
 | 
					        exit 0
 | 
				
			||||||
    fi
 | 
					    fi
 | 
				
			||||||
# keep an eye out for 2.4.0.X in the future
 | 
					# keep an eye out for 2.4.1.X in the future
 | 
				
			||||||
    if [ $VER = "2.4.0.0" ]; then
 | 
					    if [ $VER = "2.4.1.0" ]; then
 | 
				
			||||||
        echo "Ansible $VER installed exiting..."
 | 
					        echo "Ansible $VER installed exiting..."
 | 
				
			||||||
        exit 0
 | 
					        exit 0
 | 
				
			||||||
    fi
 | 
					    fi
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue