Created
July 8, 2022 09:27
-
-
Save Akasurde/2bfd06632a79b88daba479a78e4dfe78 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - name: Remove nth element from the list | |
| debug: | |
| msg: | | |
| {% set _ = my_list.pop(index) %} | |
| {{ my_list }} | |
| vars: | |
| my_list: [1, 2, 3, 4, 5, 6] | |
| index: 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment