mirror of
				https://github.com/iiab/iiab.git
				synced 2025-03-09 15:40:17 +00:00 
			
		
		
		
	Clarified OS's in sugarizer/tasks/main.yml
This commit is contained in:
		
							parent
							
								
									2a1b18d8ad
								
							
						
					
					
						commit
						3d7c936c35
					
				
					 1 changed files with 8 additions and 8 deletions
				
			
		| 
						 | 
					@ -12,16 +12,16 @@
 | 
				
			||||||
        src={{ sugarizer_location }}/{{ sugarizer_version }}
 | 
					        src={{ sugarizer_location }}/{{ sugarizer_version }}
 | 
				
			||||||
        state=link
 | 
					        state=link
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Set up apt sources on is_debuntu
 | 
					- name: Set up apt sources (debuntu)
 | 
				
			||||||
  shell: curl -sL https://deb.nodesource.com/setup_6.x | bash -
 | 
					  shell: curl -sL https://deb.nodesource.com/setup_6.x | bash -
 | 
				
			||||||
  when: internet_available and is_debuntu
 | 
					  when: internet_available and is_debuntu
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Install nodejs=6.* which includes /usr/bin/npm - is_debuntu
 | 
					- name: Install nodejs=6.* which includes /usr/bin/npm (debuntu)
 | 
				
			||||||
  package: name=nodejs=6.*
 | 
					  package: name=nodejs=6.*
 | 
				
			||||||
           state=present
 | 
					           state=present
 | 
				
			||||||
  when: internet_available and is_debuntu
 | 
					  when: internet_available and is_debuntu
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Install npm non is_debuntu
 | 
					- name: Install npm (OS's other than debuntu)
 | 
				
			||||||
  package: name={{ item }}
 | 
					  package: name={{ item }}
 | 
				
			||||||
           state=present
 | 
					           state=present
 | 
				
			||||||
  when: internet_available and not is_debuntu
 | 
					  when: internet_available and not is_debuntu
 | 
				
			||||||
| 
						 | 
					@ -55,20 +55,20 @@
 | 
				
			||||||
#        dest=/etc/apache2/sites-enabled/sugarizer.conf
 | 
					#        dest=/etc/apache2/sites-enabled/sugarizer.conf
 | 
				
			||||||
#        state=link
 | 
					#        state=link
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Create the express framework for node.js - ALL less F18
 | 
					- name: Create the express framework for node.js (OS's other than Fedora 18)
 | 
				
			||||||
  shell:  npm install
 | 
					  shell:  npm install
 | 
				
			||||||
  args:
 | 
					  args:
 | 
				
			||||||
     chdir: "{{ sugarizer_location }}/sugarizer/server"
 | 
					     chdir: "{{ sugarizer_location }}/sugarizer/server"
 | 
				
			||||||
     creates: "{{ sugarizer_location }}/sugarizer/server/node_modules"
 | 
					     creates: "{{ sugarizer_location }}/sugarizer/server/node_modules"
 | 
				
			||||||
  when: not is_F18 and not npm_exists
 | 
					  when: not is_F18 and not npm_exists
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Create the express framework for node.js - F18
 | 
					- name: Create the express framework for node.js (Fedora 18)
 | 
				
			||||||
  shell:  npm install
 | 
					  shell:  npm install
 | 
				
			||||||
  args:
 | 
					  args:
 | 
				
			||||||
     chdir: "{{ sugarizer_location }}/sugarizer/server"
 | 
					     chdir: "{{ sugarizer_location }}/sugarizer/server"
 | 
				
			||||||
  when: is_F18 and not npm_exists
 | 
					  when: is_F18 and not npm_exists
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Enable services - All
 | 
					- name: Enable services (all OS's)
 | 
				
			||||||
  service: name={{ item.name }}
 | 
					  service: name={{ item.name }}
 | 
				
			||||||
           enabled=yes
 | 
					           enabled=yes
 | 
				
			||||||
           state=restarted
 | 
					           state=restarted
 | 
				
			||||||
| 
						 | 
					@ -76,7 +76,7 @@
 | 
				
			||||||
      - { name: sugarizer }
 | 
					      - { name: sugarizer }
 | 
				
			||||||
  when: sugarizer_enabled
 | 
					  when: sugarizer_enabled
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Disable services - All
 | 
					- name: Disable services (all OS's)
 | 
				
			||||||
  service: name={{ item.name }}
 | 
					  service: name={{ item.name }}
 | 
				
			||||||
           enabled=no
 | 
					           enabled=no
 | 
				
			||||||
           state=stopped
 | 
					           state=stopped
 | 
				
			||||||
| 
						 | 
					@ -84,7 +84,7 @@
 | 
				
			||||||
      - { name: sugarizer }
 | 
					      - { name: sugarizer }
 | 
				
			||||||
  when: not sugarizer_enabled
 | 
					  when: not sugarizer_enabled
 | 
				
			||||||
 | 
					
 | 
				
			||||||
- name: Add Sugarizer to service list
 | 
					- name: Add 'sugarizer' to service list
 | 
				
			||||||
  ini_file: dest='{{ service_filelist }}'
 | 
					  ini_file: dest='{{ service_filelist }}'
 | 
				
			||||||
            section=sugarizer
 | 
					            section=sugarizer
 | 
				
			||||||
            option='{{ item.option }}'
 | 
					            option='{{ item.option }}'
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue