mirror of
				https://github.com/telekom-security/tpotce.git
				synced 2025-10-31 12:32:55 +00:00 
			
		
		
		
	Improve Ansible resource naming
This commit is contained in:
		
							parent
							
								
									628ea0224c
								
							
						
					
					
						commit
						0649d56521
					
				
					 2 changed files with 10 additions and 10 deletions
				
			
		|  | @ -1,25 +1,25 @@ | ||||||
| - name: Create security group | - name: Create security group | ||||||
|   openstack.cloud.security_group: |   openstack.cloud.security_group: | ||||||
|     cloud: "{{ cloud }}" |     cloud: "{{ cloud }}" | ||||||
|     name: sg-tpot-any |     name: sg-tpot-ansible | ||||||
|     description: tpot any-any |     description: Security Group for T-Pot | ||||||
| 
 | 
 | ||||||
| - name: Add rules to security group | - name: Add rules to security group | ||||||
|   openstack.cloud.security_group_rule: |   openstack.cloud.security_group_rule: | ||||||
|     cloud: "{{ cloud }}" |     cloud: "{{ cloud }}" | ||||||
|     security_group: sg-tpot-any |     security_group: sg-tpot-ansible | ||||||
|     remote_ip_prefix: 0.0.0.0/0 |     remote_ip_prefix: 0.0.0.0/0 | ||||||
| 
 | 
 | ||||||
| - name: Create network | - name: Create network | ||||||
|   openstack.cloud.network: |   openstack.cloud.network: | ||||||
|     cloud: "{{ cloud }}" |     cloud: "{{ cloud }}" | ||||||
|     name: network-tpot |     name: network-tpot-ansible | ||||||
| 
 | 
 | ||||||
| - name: Create subnet | - name: Create subnet | ||||||
|   openstack.cloud.subnet: |   openstack.cloud.subnet: | ||||||
|     cloud: "{{ cloud }}" |     cloud: "{{ cloud }}" | ||||||
|     network_name: network-tpot |     network_name: network-tpot-ansible | ||||||
|     name: subnet-tpot |     name: subnet-tpot-ansible | ||||||
|     cidr: 192.168.0.0/24 |     cidr: 192.168.0.0/24 | ||||||
|     dns_nameservers: |     dns_nameservers: | ||||||
|       - 1.1.1.1 |       - 1.1.1.1 | ||||||
|  | @ -28,6 +28,6 @@ | ||||||
| - name: Create router | - name: Create router | ||||||
|   openstack.cloud.router: |   openstack.cloud.router: | ||||||
|     cloud: "{{ cloud }}" |     cloud: "{{ cloud }}" | ||||||
|     name: router-tpot |     name: router-tpot-ansible | ||||||
|     interfaces: |     interfaces: | ||||||
|       - subnet-tpot |       - subnet-tpot-ansible | ||||||
|  |  | ||||||
|  | @ -13,8 +13,8 @@ | ||||||
|     key_name: "{{ key_name }}" |     key_name: "{{ key_name }}" | ||||||
|     timeout: 200 |     timeout: 200 | ||||||
|     flavor: "{{ flavor }}" |     flavor: "{{ flavor }}" | ||||||
|     security_groups: sg-tpot-any |     security_groups: sg-tpot-ansible | ||||||
|     network: network-tpot |     network: network-tpot-ansible | ||||||
|   register: tpot |   register: tpot | ||||||
| 
 | 
 | ||||||
| - name: Add instance to inventory | - name: Add instance to inventory | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue
	
	 Sebastian Haderecker
						Sebastian Haderecker