YAML Syntactical Errorconfigure: error: Please install libyamlbatch file errorAnsible command-task runs into...

Plot of a tornado-shaped surface

Strong empirical falsification of quantum mechanics based on vacuum energy density

How do apertures which seem too large to physically fit work?

How to cover method return statement in Apex Class?

How can "mimic phobia" be cured or prevented?

How does a computer interpret real numbers?

How to hide some fields of struct in C?

What is the evidence for the "tyranny of the majority problem" in a direct democracy context?

Fear of getting stuck on one programming language / technology that is not used in my country

Creepy dinosaur pc game identification

Store Credit Card Information in Password Manager?

Mixing PEX brands

Can the US President recognize Israel’s sovereignty over the Golan Heights for the USA or does that need an act of Congress?

Has any country ever had 2 former presidents in jail simultaneously?

The IT department bottlenecks progress. How should I handle this?

Why can Carol Danvers change her suit colours in the first place?

What does chmod -u do?

How much character growth crosses the line into breaking the character

What is Cash Advance APR?

What if a revenant (monster) gains fire resistance?

Can a College of Swords bard use a Blade Flourish option on an opportunity attack provoked by their own Dissonant Whispers spell?

It grows, but water kills it

Why is so much work done on numerical verification of the Riemann Hypothesis?

What does "Scientists rise up against statistical significance" mean? (Comment in Nature)



YAML Syntactical Error


configure: error: Please install libyamlbatch file errorAnsible command-task runs into “Exec format error”How can I get pandoc to recognize my custom YAML fields?ansible most simple case not running - “MODULE_ARGS is not defined” errorConvert JSON to YAML using PowerShellAnsible error: Unable to add user to already existing groupJava memory allocation error inside a Docker container when host machine is running Alpine LinuxWhy do tabs in YAML work some but not at all times?Adding a comment character to the leftmost column of YAML in Vim













0















The following is my yaml file for a ansible configuration of a cisco device. In /etc/ansible/hosts I have also edited the hosts file to reflect my Amazon EC2 Ami instance as can be seen below



[ec2-instances]
ec2-54-152-72-23.compute-1.amazonaws.com


Inventory file ^



YAML File Below



---
- hosts: ec2-54-152-72-23.compute-1.amazonaws.com
gather_facts: false
connection: local

tasks:
-name: Customer IOS Upgrade Initial Discovery
cli_command: "{{ show }}"

vars:
show:
- show run
- show version
- show interface status
- show license


-mail:
host: smtp.gmail.com
port: 587
username: sample@gmail.com
password: sample2
to: sample@sample.com
subject: '{{ ansible_hostname }} configuration'
body: 'System {{ ansible_hostname }} has been successfully discovered.'
delegate_to: localhost

save_when: changed
...


I get the following error message when trying to run the following. Any idea why this is happening? I have switched out what is seen in the initial .yaml file provided with [ec2-instances] and there is still no difference in runtime result.



ansible-playbook -i /etc/ansible/hosts test2.yml --user ec2-user --private-key=/home/adam/Desktop/EC2CSR1000v.pem -vvv
ansible-playbook 2.7.9
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/home/adam/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.7/dist-packages/ansible
executable location = /usr/bin/ansible-playbook
python version = 2.7.15rc1 (default, Nov 12 2018, 14:31:15) [GCC 7.3.0]
Using /etc/ansible/ansible.cfg as config file
/etc/ansible/hosts did not meet host_list requirements, check plugin documentation if this is unexpected
/etc/ansible/hosts did not meet script requirements, check plugin documentation if this is unexpected
Parsed /etc/ansible/hosts inventory source with ini plugin
ERROR! A malformed block was encountered while loading tasks

The error appears to have been in '/etc/ansible/scripts/test2.yml': line 2, column 4, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

---
- hosts: [ec2-instance]
^ here









share|improve this question









New contributor




MrLazyNetworkAutomation is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    0















    The following is my yaml file for a ansible configuration of a cisco device. In /etc/ansible/hosts I have also edited the hosts file to reflect my Amazon EC2 Ami instance as can be seen below



    [ec2-instances]
    ec2-54-152-72-23.compute-1.amazonaws.com


    Inventory file ^



    YAML File Below



    ---
    - hosts: ec2-54-152-72-23.compute-1.amazonaws.com
    gather_facts: false
    connection: local

    tasks:
    -name: Customer IOS Upgrade Initial Discovery
    cli_command: "{{ show }}"

    vars:
    show:
    - show run
    - show version
    - show interface status
    - show license


    -mail:
    host: smtp.gmail.com
    port: 587
    username: sample@gmail.com
    password: sample2
    to: sample@sample.com
    subject: '{{ ansible_hostname }} configuration'
    body: 'System {{ ansible_hostname }} has been successfully discovered.'
    delegate_to: localhost

    save_when: changed
    ...


    I get the following error message when trying to run the following. Any idea why this is happening? I have switched out what is seen in the initial .yaml file provided with [ec2-instances] and there is still no difference in runtime result.



    ansible-playbook -i /etc/ansible/hosts test2.yml --user ec2-user --private-key=/home/adam/Desktop/EC2CSR1000v.pem -vvv
    ansible-playbook 2.7.9
    config file = /etc/ansible/ansible.cfg
    configured module search path = [u'/home/adam/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
    ansible python module location = /usr/lib/python2.7/dist-packages/ansible
    executable location = /usr/bin/ansible-playbook
    python version = 2.7.15rc1 (default, Nov 12 2018, 14:31:15) [GCC 7.3.0]
    Using /etc/ansible/ansible.cfg as config file
    /etc/ansible/hosts did not meet host_list requirements, check plugin documentation if this is unexpected
    /etc/ansible/hosts did not meet script requirements, check plugin documentation if this is unexpected
    Parsed /etc/ansible/hosts inventory source with ini plugin
    ERROR! A malformed block was encountered while loading tasks

    The error appears to have been in '/etc/ansible/scripts/test2.yml': line 2, column 4, but may
    be elsewhere in the file depending on the exact syntax problem.

    The offending line appears to be:

    ---
    - hosts: [ec2-instance]
    ^ here









    share|improve this question









    New contributor




    MrLazyNetworkAutomation is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      0












      0








      0








      The following is my yaml file for a ansible configuration of a cisco device. In /etc/ansible/hosts I have also edited the hosts file to reflect my Amazon EC2 Ami instance as can be seen below



      [ec2-instances]
      ec2-54-152-72-23.compute-1.amazonaws.com


      Inventory file ^



      YAML File Below



      ---
      - hosts: ec2-54-152-72-23.compute-1.amazonaws.com
      gather_facts: false
      connection: local

      tasks:
      -name: Customer IOS Upgrade Initial Discovery
      cli_command: "{{ show }}"

      vars:
      show:
      - show run
      - show version
      - show interface status
      - show license


      -mail:
      host: smtp.gmail.com
      port: 587
      username: sample@gmail.com
      password: sample2
      to: sample@sample.com
      subject: '{{ ansible_hostname }} configuration'
      body: 'System {{ ansible_hostname }} has been successfully discovered.'
      delegate_to: localhost

      save_when: changed
      ...


      I get the following error message when trying to run the following. Any idea why this is happening? I have switched out what is seen in the initial .yaml file provided with [ec2-instances] and there is still no difference in runtime result.



      ansible-playbook -i /etc/ansible/hosts test2.yml --user ec2-user --private-key=/home/adam/Desktop/EC2CSR1000v.pem -vvv
      ansible-playbook 2.7.9
      config file = /etc/ansible/ansible.cfg
      configured module search path = [u'/home/adam/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
      ansible python module location = /usr/lib/python2.7/dist-packages/ansible
      executable location = /usr/bin/ansible-playbook
      python version = 2.7.15rc1 (default, Nov 12 2018, 14:31:15) [GCC 7.3.0]
      Using /etc/ansible/ansible.cfg as config file
      /etc/ansible/hosts did not meet host_list requirements, check plugin documentation if this is unexpected
      /etc/ansible/hosts did not meet script requirements, check plugin documentation if this is unexpected
      Parsed /etc/ansible/hosts inventory source with ini plugin
      ERROR! A malformed block was encountered while loading tasks

      The error appears to have been in '/etc/ansible/scripts/test2.yml': line 2, column 4, but may
      be elsewhere in the file depending on the exact syntax problem.

      The offending line appears to be:

      ---
      - hosts: [ec2-instance]
      ^ here









      share|improve this question









      New contributor




      MrLazyNetworkAutomation is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      The following is my yaml file for a ansible configuration of a cisco device. In /etc/ansible/hosts I have also edited the hosts file to reflect my Amazon EC2 Ami instance as can be seen below



      [ec2-instances]
      ec2-54-152-72-23.compute-1.amazonaws.com


      Inventory file ^



      YAML File Below



      ---
      - hosts: ec2-54-152-72-23.compute-1.amazonaws.com
      gather_facts: false
      connection: local

      tasks:
      -name: Customer IOS Upgrade Initial Discovery
      cli_command: "{{ show }}"

      vars:
      show:
      - show run
      - show version
      - show interface status
      - show license


      -mail:
      host: smtp.gmail.com
      port: 587
      username: sample@gmail.com
      password: sample2
      to: sample@sample.com
      subject: '{{ ansible_hostname }} configuration'
      body: 'System {{ ansible_hostname }} has been successfully discovered.'
      delegate_to: localhost

      save_when: changed
      ...


      I get the following error message when trying to run the following. Any idea why this is happening? I have switched out what is seen in the initial .yaml file provided with [ec2-instances] and there is still no difference in runtime result.



      ansible-playbook -i /etc/ansible/hosts test2.yml --user ec2-user --private-key=/home/adam/Desktop/EC2CSR1000v.pem -vvv
      ansible-playbook 2.7.9
      config file = /etc/ansible/ansible.cfg
      configured module search path = [u'/home/adam/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
      ansible python module location = /usr/lib/python2.7/dist-packages/ansible
      executable location = /usr/bin/ansible-playbook
      python version = 2.7.15rc1 (default, Nov 12 2018, 14:31:15) [GCC 7.3.0]
      Using /etc/ansible/ansible.cfg as config file
      /etc/ansible/hosts did not meet host_list requirements, check plugin documentation if this is unexpected
      /etc/ansible/hosts did not meet script requirements, check plugin documentation if this is unexpected
      Parsed /etc/ansible/hosts inventory source with ini plugin
      ERROR! A malformed block was encountered while loading tasks

      The error appears to have been in '/etc/ansible/scripts/test2.yml': line 2, column 4, but may
      be elsewhere in the file depending on the exact syntax problem.

      The offending line appears to be:

      ---
      - hosts: [ec2-instance]
      ^ here






      automation ansible yaml






      share|improve this question









      New contributor




      MrLazyNetworkAutomation is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question









      New contributor




      MrLazyNetworkAutomation is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question








      edited 14 mins ago









      Anthon

      151119




      151119






      New contributor




      MrLazyNetworkAutomation is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 7 hours ago









      MrLazyNetworkAutomationMrLazyNetworkAutomation

      1




      1




      New contributor




      MrLazyNetworkAutomation is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      MrLazyNetworkAutomation is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      MrLazyNetworkAutomation is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          1 Answer
          1






          active

          oldest

          votes


















          0














          That document is valid YAML, but that doesn't mean it is what ansible expects.
          Your keys -name and -mail look suspiciously like a malformed sequence consisting of a mapping, which would require a space between the dash and the following character.



          Looking at the exmample here that indeed seems to be the case. And you should IMO also format your YAML consistently, instead of starting with 3 indent sequence entry (- hosts) with no offset for the dash, then 3 indent sequence entry (- show run) with offset for the dash. That makes it much harder to visually determine potential errors in your YAML file. Just always use 2 indent with no offset for the dash.



          Now it is completely unclear whether instead of your



             tasks:
          -name: Customer IOS Upgrade Initial Discovery
          cli_command: "{{ show }}"

          vars:


          This should was meant:



             tasks:
          - name: Customer IOS Upgrade Initial Discovery
          cli_command: "{{ show }}"

          vars:


          or this



             tasks:
          - name: Customer IOS Upgrade Initial Discovery
          cli_command: "{{ show }}"

          vars:


          All three are valid YAML, but not necessarily interpretable by ansible






          share|improve this answer
























          • To be honest Anthon, spacing is difficult to understand for me as I am use to languages where it is super precise and yet it doesn't seem to matter here with YAML. Are there any good resources you can recommend as I am just trying to learn about the structure of how to write yaml?

            – MrLazyNetworkAutomation
            6 hours ago













          • In YAML indentation does matter, but YAML doesn't enforce a particular number of positions except for the same level within for items of a sequence and the keys of a mapping. Run your source through default mode of the online nim YAML parser. If you can run Python programs, you can use my ruamel.yaml.cmd package to install the yaml command that can do the same. In general I can recommend starting with a working example and change that taking great care with the indentation levels.

            – Anthon
            6 hours ago











          • I think that this code formatting didn't do me justice, while my spacing should be better, tell me if this helps clarify anything in terms of my formatting because this vscode environment is what I use. imgur.com/a/dxMPmIB

            – MrLazyNetworkAutomation
            6 hours ago











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });






          MrLazyNetworkAutomation is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1416489%2fyaml-syntactical-error%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          That document is valid YAML, but that doesn't mean it is what ansible expects.
          Your keys -name and -mail look suspiciously like a malformed sequence consisting of a mapping, which would require a space between the dash and the following character.



          Looking at the exmample here that indeed seems to be the case. And you should IMO also format your YAML consistently, instead of starting with 3 indent sequence entry (- hosts) with no offset for the dash, then 3 indent sequence entry (- show run) with offset for the dash. That makes it much harder to visually determine potential errors in your YAML file. Just always use 2 indent with no offset for the dash.



          Now it is completely unclear whether instead of your



             tasks:
          -name: Customer IOS Upgrade Initial Discovery
          cli_command: "{{ show }}"

          vars:


          This should was meant:



             tasks:
          - name: Customer IOS Upgrade Initial Discovery
          cli_command: "{{ show }}"

          vars:


          or this



             tasks:
          - name: Customer IOS Upgrade Initial Discovery
          cli_command: "{{ show }}"

          vars:


          All three are valid YAML, but not necessarily interpretable by ansible






          share|improve this answer
























          • To be honest Anthon, spacing is difficult to understand for me as I am use to languages where it is super precise and yet it doesn't seem to matter here with YAML. Are there any good resources you can recommend as I am just trying to learn about the structure of how to write yaml?

            – MrLazyNetworkAutomation
            6 hours ago













          • In YAML indentation does matter, but YAML doesn't enforce a particular number of positions except for the same level within for items of a sequence and the keys of a mapping. Run your source through default mode of the online nim YAML parser. If you can run Python programs, you can use my ruamel.yaml.cmd package to install the yaml command that can do the same. In general I can recommend starting with a working example and change that taking great care with the indentation levels.

            – Anthon
            6 hours ago











          • I think that this code formatting didn't do me justice, while my spacing should be better, tell me if this helps clarify anything in terms of my formatting because this vscode environment is what I use. imgur.com/a/dxMPmIB

            – MrLazyNetworkAutomation
            6 hours ago
















          0














          That document is valid YAML, but that doesn't mean it is what ansible expects.
          Your keys -name and -mail look suspiciously like a malformed sequence consisting of a mapping, which would require a space between the dash and the following character.



          Looking at the exmample here that indeed seems to be the case. And you should IMO also format your YAML consistently, instead of starting with 3 indent sequence entry (- hosts) with no offset for the dash, then 3 indent sequence entry (- show run) with offset for the dash. That makes it much harder to visually determine potential errors in your YAML file. Just always use 2 indent with no offset for the dash.



          Now it is completely unclear whether instead of your



             tasks:
          -name: Customer IOS Upgrade Initial Discovery
          cli_command: "{{ show }}"

          vars:


          This should was meant:



             tasks:
          - name: Customer IOS Upgrade Initial Discovery
          cli_command: "{{ show }}"

          vars:


          or this



             tasks:
          - name: Customer IOS Upgrade Initial Discovery
          cli_command: "{{ show }}"

          vars:


          All three are valid YAML, but not necessarily interpretable by ansible






          share|improve this answer
























          • To be honest Anthon, spacing is difficult to understand for me as I am use to languages where it is super precise and yet it doesn't seem to matter here with YAML. Are there any good resources you can recommend as I am just trying to learn about the structure of how to write yaml?

            – MrLazyNetworkAutomation
            6 hours ago













          • In YAML indentation does matter, but YAML doesn't enforce a particular number of positions except for the same level within for items of a sequence and the keys of a mapping. Run your source through default mode of the online nim YAML parser. If you can run Python programs, you can use my ruamel.yaml.cmd package to install the yaml command that can do the same. In general I can recommend starting with a working example and change that taking great care with the indentation levels.

            – Anthon
            6 hours ago











          • I think that this code formatting didn't do me justice, while my spacing should be better, tell me if this helps clarify anything in terms of my formatting because this vscode environment is what I use. imgur.com/a/dxMPmIB

            – MrLazyNetworkAutomation
            6 hours ago














          0












          0








          0







          That document is valid YAML, but that doesn't mean it is what ansible expects.
          Your keys -name and -mail look suspiciously like a malformed sequence consisting of a mapping, which would require a space between the dash and the following character.



          Looking at the exmample here that indeed seems to be the case. And you should IMO also format your YAML consistently, instead of starting with 3 indent sequence entry (- hosts) with no offset for the dash, then 3 indent sequence entry (- show run) with offset for the dash. That makes it much harder to visually determine potential errors in your YAML file. Just always use 2 indent with no offset for the dash.



          Now it is completely unclear whether instead of your



             tasks:
          -name: Customer IOS Upgrade Initial Discovery
          cli_command: "{{ show }}"

          vars:


          This should was meant:



             tasks:
          - name: Customer IOS Upgrade Initial Discovery
          cli_command: "{{ show }}"

          vars:


          or this



             tasks:
          - name: Customer IOS Upgrade Initial Discovery
          cli_command: "{{ show }}"

          vars:


          All three are valid YAML, but not necessarily interpretable by ansible






          share|improve this answer













          That document is valid YAML, but that doesn't mean it is what ansible expects.
          Your keys -name and -mail look suspiciously like a malformed sequence consisting of a mapping, which would require a space between the dash and the following character.



          Looking at the exmample here that indeed seems to be the case. And you should IMO also format your YAML consistently, instead of starting with 3 indent sequence entry (- hosts) with no offset for the dash, then 3 indent sequence entry (- show run) with offset for the dash. That makes it much harder to visually determine potential errors in your YAML file. Just always use 2 indent with no offset for the dash.



          Now it is completely unclear whether instead of your



             tasks:
          -name: Customer IOS Upgrade Initial Discovery
          cli_command: "{{ show }}"

          vars:


          This should was meant:



             tasks:
          - name: Customer IOS Upgrade Initial Discovery
          cli_command: "{{ show }}"

          vars:


          or this



             tasks:
          - name: Customer IOS Upgrade Initial Discovery
          cli_command: "{{ show }}"

          vars:


          All three are valid YAML, but not necessarily interpretable by ansible







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 6 hours ago









          AnthonAnthon

          151119




          151119













          • To be honest Anthon, spacing is difficult to understand for me as I am use to languages where it is super precise and yet it doesn't seem to matter here with YAML. Are there any good resources you can recommend as I am just trying to learn about the structure of how to write yaml?

            – MrLazyNetworkAutomation
            6 hours ago













          • In YAML indentation does matter, but YAML doesn't enforce a particular number of positions except for the same level within for items of a sequence and the keys of a mapping. Run your source through default mode of the online nim YAML parser. If you can run Python programs, you can use my ruamel.yaml.cmd package to install the yaml command that can do the same. In general I can recommend starting with a working example and change that taking great care with the indentation levels.

            – Anthon
            6 hours ago











          • I think that this code formatting didn't do me justice, while my spacing should be better, tell me if this helps clarify anything in terms of my formatting because this vscode environment is what I use. imgur.com/a/dxMPmIB

            – MrLazyNetworkAutomation
            6 hours ago



















          • To be honest Anthon, spacing is difficult to understand for me as I am use to languages where it is super precise and yet it doesn't seem to matter here with YAML. Are there any good resources you can recommend as I am just trying to learn about the structure of how to write yaml?

            – MrLazyNetworkAutomation
            6 hours ago













          • In YAML indentation does matter, but YAML doesn't enforce a particular number of positions except for the same level within for items of a sequence and the keys of a mapping. Run your source through default mode of the online nim YAML parser. If you can run Python programs, you can use my ruamel.yaml.cmd package to install the yaml command that can do the same. In general I can recommend starting with a working example and change that taking great care with the indentation levels.

            – Anthon
            6 hours ago











          • I think that this code formatting didn't do me justice, while my spacing should be better, tell me if this helps clarify anything in terms of my formatting because this vscode environment is what I use. imgur.com/a/dxMPmIB

            – MrLazyNetworkAutomation
            6 hours ago

















          To be honest Anthon, spacing is difficult to understand for me as I am use to languages where it is super precise and yet it doesn't seem to matter here with YAML. Are there any good resources you can recommend as I am just trying to learn about the structure of how to write yaml?

          – MrLazyNetworkAutomation
          6 hours ago







          To be honest Anthon, spacing is difficult to understand for me as I am use to languages where it is super precise and yet it doesn't seem to matter here with YAML. Are there any good resources you can recommend as I am just trying to learn about the structure of how to write yaml?

          – MrLazyNetworkAutomation
          6 hours ago















          In YAML indentation does matter, but YAML doesn't enforce a particular number of positions except for the same level within for items of a sequence and the keys of a mapping. Run your source through default mode of the online nim YAML parser. If you can run Python programs, you can use my ruamel.yaml.cmd package to install the yaml command that can do the same. In general I can recommend starting with a working example and change that taking great care with the indentation levels.

          – Anthon
          6 hours ago





          In YAML indentation does matter, but YAML doesn't enforce a particular number of positions except for the same level within for items of a sequence and the keys of a mapping. Run your source through default mode of the online nim YAML parser. If you can run Python programs, you can use my ruamel.yaml.cmd package to install the yaml command that can do the same. In general I can recommend starting with a working example and change that taking great care with the indentation levels.

          – Anthon
          6 hours ago













          I think that this code formatting didn't do me justice, while my spacing should be better, tell me if this helps clarify anything in terms of my formatting because this vscode environment is what I use. imgur.com/a/dxMPmIB

          – MrLazyNetworkAutomation
          6 hours ago





          I think that this code formatting didn't do me justice, while my spacing should be better, tell me if this helps clarify anything in terms of my formatting because this vscode environment is what I use. imgur.com/a/dxMPmIB

          – MrLazyNetworkAutomation
          6 hours ago










          MrLazyNetworkAutomation is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          MrLazyNetworkAutomation is a new contributor. Be nice, and check out our Code of Conduct.













          MrLazyNetworkAutomation is a new contributor. Be nice, and check out our Code of Conduct.












          MrLazyNetworkAutomation is a new contributor. Be nice, and check out our Code of Conduct.
















          Thanks for contributing an answer to Super User!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1416489%2fyaml-syntactical-error%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Why not use the yoke to control yaw, as well as pitch and roll? Announcing the arrival of...

          Couldn't open a raw socket. Error: Permission denied (13) (nmap)Is it possible to run networking commands...

          VNC viewer RFB protocol error: bad desktop size 0x0I Cannot Type the Key 'd' (lowercase) in VNC Viewer...