Repository for the blog post Automating Network Device Configuration Parsing with Ansible: Tips and Tricks for Network Engineers
Provide a config file as an Ansible extra variable with the command line using the --extra-vars (or -e) argument.
$ ansible-navigator run main.yml -e config=base.txt