Leaving a new job quickly?

I'm currently working in IT, but job hunting for a new position. I have a good lead for a security position but it might take a few months until that happens. A friend works there and he said they don't even normally contact the people back for up to 2 months until after the application. Then the interview process, etc, even then it's not guaranteed.
Anyway, I found another position, it's more of a generalist type position but it's a very large pay increase from what I'm doing now and I'm very qualified for the role and have some unique experience in my background that would likely make me more appealing than most others applying there.
My question, is if I go for this 2nd job, and start, then if the more preferred job comes knocking a few weeks later... how bad is that? Traditionally I tend to stay at companies a long time so hopping around isn't something I normally do but I also want to move up in my career. If you ended up taking another job less than a month after your first one would you even list that on your resume in the future? For reference I have 10+ years in IT so it's not like I'd NEED to list them as experience.
Thanks.
Anyway, I found another position, it's more of a generalist type position but it's a very large pay increase from what I'm doing now and I'm very qualified for the role and have some unique experience in my background that would likely make me more appealing than most others applying there.
My question, is if I go for this 2nd job, and start, then if the more preferred job comes knocking a few weeks later... how bad is that? Traditionally I tend to stay at companies a long time so hopping around isn't something I normally do but I also want to move up in my career. If you ended up taking another job less than a month after your first one would you even list that on your resume in the future? For reference I have 10+ years in IT so it's not like I'd NEED to list them as experience.
Thanks.
Comments
If the situation happens and you want to jump ship, just make sure you don't burn any bridges. Also consider not putting the few weeks or 1 month on your resume.
Certs: RHCSA, LFCS: Ubuntu, CNCF CKA, CNCF CKAD | AWS Certified DevOps Engineer, AWS Solutions Architect Pro, AWS Certified Security Specialist, GCP Professional Cloud Architect
Learn: Terraform, Kubernetes, Prometheus & Golang | Improve: Docker, Python Programming
To-do | In Progress | Completed
2014 Goals: [ ] CCDP, [ ] CCNA Security, [ ] CCNP Security
2015 Goals: [ ] Finish BS in CIS, [ ] CCIE R&S Written
2016 Goals: [ ] CCIE R&S
I left my last job after 3 months despite being under contract for 1 year because the new opportunity paid over double and had more responsibilities and better duties (help desk vs something with way more priority and visibility).
However, if it becomes a trend, employers may begin to look at you cautiously because they may feel that they could be left too after a little while.